Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send a specifi hotkey when open a visual basic application

Status
Not open for further replies.

sisbril

IS-IT--Management
Aug 6, 2012
17
0
0
BR
I have a software the run a process when I press CTRL+ALT+D in anyplace of windows.

What I need to do is create a visual basic exe that press CTRL+ALT+D in the windows forms.

I already tried the code bellow but no success:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SendKeys.Send("^%(D)")
End Sub


thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top