Run a .net exe inside a windows form

S

Shiva Ramani

I need to run a .net application (.net winapp with multiple forms) inside a
main C# windows application - form which should be the container of the above
application
 
N

Nicholas Paldino [.NET/C# MVP]

Shiva,

If the application does not expose it's main form from it's EXE, and the
constructor of the form is not where the real work happens, then you really
have to run the program and try setting the parent of the window to your
app. It's not clean, and you are going to have some problems with it, I
believe.

If you have knowledge of the app and can reference the EXE/DLLs, then
you can just create the instances of the forms you need and then parent them
to your MDI container.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top