VB textbox.focus() problem
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?
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.
精彩评论