what is the function or method to be used to send keys , as we used sendkeys in vb6
Printable View
what is the function or method to be used to send keys , as we used sendkeys in vb6
Sendkeys.Send, although it is just as unreliable as the VB6 version. If you tell us exactly whet you're trying to do we may be able to suggest a better alternative.
actually wat i want is when the user press the enter key in an textbox it must send the tab key(or set the focus to next control)
i cannot give if keyascii=13 then text2.focus
bcoz i wana write the code for the form_keypress , and i have set the keypreview to true
Handle the KeyDown event of the TextBox, trap the Enter key and call the SelectnextControl method of the form.