Opening another application from .Net application

  • Thread starter Thread starter Krish
  • Start date Start date
K

Krish

I have an application that I want to open from my .net application. I
want this application as a clild window of my application. not as a
separate process. Is this posssible?

System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "Mspaint.exe";
p.Start();

The following code will open mspaint from my application.. but it will
be a free window. I want this to be like a child window of my
application.
 
You can try this. It doesn't make it a "child" (I'm not sure actually what
you mean by this) but it does give you control.

Try
MyApp = GetObject(, ""Mspaint.exe") ' in case it's there
Catch ex as Exception
MyApp = CreateObject ( and here you need to do some research )
End Try

you will need to create a reference if you want Intellisense etc. but later
you can use late binding and convert MyApp to Object
 
Stuart Nathan
Will you be able to give me the C# equivalent for this?
What object is MyApp?

Thanks in advance
Kris
 
Back
Top