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

I Want To Start A Program Within A VB Program

Status
Not open for further replies.

DeliRick

Programmer
Apr 28, 2002
5
US
I'm developing a program and I want the user to be able to click a button that will launch another application. What is the command to open (start) a program. Any help would be appreciated.
 
Use the shell command to execute another program within the vb.

Dim RetVal
RetVal = Shell("C:\WINDOWS\NOTEPAD.EXE", 1)

If you want to execute a vb program within a vb program, i suggest that you need to create a ActiveX DLL or OCX.


JBats
Good is not better if not than best...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top