PC Review


Reply
Thread Tools Rate Thread

Application Within Application

 
 
hufaunder@yahoo.com
Guest
Posts: n/a
 
      8th Jan 2007
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

 
Reply With Quote
 
 
 
 
Wouter de Kort
Guest
Posts: n/a
 
      8th Jan 2007
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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

 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      20th Mar 2007
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.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY keepout@yahoo.com.invalid Windows Vista General Discussion 15 16th Sep 2007 01:50 AM
Managed C++: The application failed to initialize properly (0xc000007b).Click on OK to terminate the application. Tommy Vercetti Microsoft VC .NET 4 23rd Mar 2005 08:19 PM
Fail in operating my hardware in web application , makes other windows application startup failure. Ryan.ZhYin Microsoft C# .NET 0 25th Jan 2005 08:34 AM
Please recommend book about design patterns for server application\distrubuted application Julia Microsoft C# .NET 2 11th Dec 2004 01:37 AM
Making more memory available to application?Im making a memory intense application, the application is supposed to open a prettylarge image (about 9200*10200 in 300Dpi) yosh@liquidzone.net Microsoft Dot NET Framework Forms 0 6th Dec 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 PM.