I cant seem to get VB to focus on a textbox correctly at the moment I did
TextBox.focus()
in the load event but still a button keeps grabbing focus anyway. Does anyone know why this would happen?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try changing the tabindex property.
in webforms, see http://www.w3schools.com/aspnet/prop_webcontrol_standard_tabindex.asp
in winforms View -> Tab Order when the desing view is open
if that doesnt work, try calling the Select() method on your TextBox.