Application Within Application

  • Thread starter Thread starter hufaunder
  • Start date Start date
H

hufaunder

I have a Windows Form application that runs just by itself. In
addition, this application should also be able to run within another
application. In this second scenario it should appear as if my app is
part of this other application. That other application only needs to be
able to start and stop my application, nothing else. What do I have to
do in my app to support this kind of scenario?

Thanks
 
I have a Windows Form application that runs just by itself. In
addition, this application should also be able to run within another
application. In this second scenario it should appear as if my app is
part of this other application. That other application only needs to be
able to start and stop my application, nothing else. What do I have to
do in my app to support this kind of scenario?


If you have a look at the Main function of your app you will see the
Application.Run(new MainForm()) line. Maybe you could try something like
this in your parent application?

Wouter de Kort
 
What you will want to do here is to have the main functionality of the
app be contained in a library that the EXE for your app, as well as this
secondary app references. This way, you can create an instance of your main
form in your EXE and then show it, or, you can have your other app create an
instance of the form and then set the parent to your app (assuming you are
running an MDI app).

Hope this helps.
 
Back
Top