I am running an application from my desktop as you see on the picture,and I don't know how to run File Open command on active form without mouse click,only with vb.application?
Printable View
I am running an application from my desktop as you see on the picture,and I don't know how to run File Open command on active form without mouse click,only with vb.application?
you need to add the shortcut to the menu object property
here to help
That application has a shortcut for open and it is "Ctrl+O",but how to run with my vb.net application??
you just press ctrl+O when the form has focus!
or are you talikg about writting the action openfile that happens once you click on the menu item?
When I hit ctrl+o its working and show me a dialog what to open,but how to do that using vb(do not hit manually by the keyboard)??
and when you click it it works too?
is what you mean ...
how do i cause this to happen when i am in the program and want the program to cause a file open event to happen?
I running one application in vb with:
a = Process.Start("C:\Window1.exe")
When it's stared show me a form as on the picture.
How to hit Ctrl+o using vb2010?
That's all.
So,control one application with other one.
Tnx
have alook for articles about sendkey in vb
its an activity i try to avoid!
here to help
If I success with this problem I will success with my application above,because it's similar problem.Code:Public Class Form1
'Button1=RUN button
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Diagnostics.Process.Start("calc")
End Sub
'Button2=COPY Button
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
SendKeys.Send("^c")
End Sub
End Class
Any idea?
did you lookup how to send crtl+O using the send key method
I trying to sendkeys to another application using my button from my application.
Other application must get focus.How to do that?
CTRL+O or CTRL+C or CTRL+S= It does not matter
Some of them must be.
the example form microsoft about the use of sendkey explains all of the process in some detail!
go have a read
here to help ( but really busy just now )