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!

Start another Exe application

Status
Not open for further replies.

DTRNTR

MIS
Jun 27, 2000
34
0
0
US
I am trying to execute an existing application (.exe) from within my VB.Net main form and can do so with the following code.

Code:
Dim NewProcess As System.Diagnostics.Process _
  = System.Diagnostics.Process.Start("C:\Program Files\SecondAppName.EXE")

Is there a way to set up my main VB form such that this executable will display within my main form window?


 
ohoh, not easy. In VB6, that could be done through something called subclassing (the best way I ever found to crash a computer)but in dotNet...
Type "subclassing" in your helpfile and if that doesn't yield, you will have to start poking around in "Microsoft", "WIn32" etc. Don't look into the Forms class because Dot-net windows are quite different from your other EXE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top