Set the tab order so that a different control that can accept the user input focus has a lower number: the OK button, for example.
"It works but only with buttons and textbox,RTF boxes ones ! i dont need it but is there any way to work it with picture box or labels something... Just curious :)
"
:laugh: No! Think about it - it's the keyboard input: so it skips all controls that can't take input, (like labels and so forth). Otherwise you could have
Label TextBox
Username: ..........
and the focus would go to the label instead of the text box. And you want the label to have a tab order value one less than the matching textbox, so that "&" processing works as well. I.e. if the label text in the above example is :
&Username:
Then it displays as "Username", but hold down ALT and the "U" is underlined, so ALT+U moves focus to the Textbox that follows the label.