|
-
Jul 20th, 2007, 12:13 AM
#1
Thread Starter
Frenzied Member
[2005] how to sendkeys
what is the function or method to be used to send keys , as we used sendkeys in vb6
-
Jul 20th, 2007, 12:30 AM
#2
Re: [2005] how to sendkeys
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.
-
Jul 20th, 2007, 12:34 AM
#3
Thread Starter
Frenzied Member
Re: [2005] how to sendkeys
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
-
Jul 20th, 2007, 01:08 AM
#4
Re: [2005] how to sendkeys
Handle the KeyDown event of the TextBox, trap the Enter key and call the SelectnextControl method of the form.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|