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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open another application using a Command button

Status
Not open for further replies.

Skinsella

Programmer
Feb 20, 2001
23
GB
I need to open up Outlook Express from my applicatin using a command button on my main form. Some one told me I could use the Set command or the define command but I couldn't find any information about it within VB. Any one know what the exact coding I need to put in? Just an example would help to get me off the ground on this one. Thanks in advance.
 
Have you tried using the SHELL Command?

E.g.

Private Sub cmdLaunch_Click()
'----------------------
Call Shell("C:\MyApp\MyApp.exe", vbNormal)
'----------------------
End Sub

In the above example, the program 'MyApp.exe' will be launched when the command button cmdLaunch is clicked. Just look up the path and filename for Outlook Express, and pass that as the first parameter of the Shell function.

Hope this helps!
LeGo PiEcE
 
Correction : (see the SECOND parameterized enumeration)


Call Shell("C:\MyApp\MyApp.exe", vbNormalFocus)

 
Works great thanks for your help. Its just one of those things you remember doing last year but you can't put your fingure on it. Thanks again much apprectiated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top