I use SendKeys Function in VB6 that it's working For Example SendKeys ("{F12}") But I use in VB.Net , it's not working SendKeys.Send ("{F12}") Who can tell me that step to using SendKeys in VB.Net to do working properly , Please Tell me
How to Sendkeys with VB.Net
Jan 10, 2007
1 Replies
Hi I found a solution. to emulate the old VB Style use this code for the F12 Button:
_ Public Sub keybd_event(ByVal Virtualkey As Byte, ByVal scanCode As Byte, ByVal flags As Long, ByVal Info As Byte) End Sub
keybd_event(123, 88, &H0, 0)
"falunkai" wrote:
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required