How to Sendkeys with VB.Net

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

Reply to
falunkai
Loading thread data ...

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:

Reply to
martin

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.