By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,543 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,543 IT Pros & Developers. It's quick & easy.

Running windows/web application inside another windows application

P: n/a
I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.

More like running different app domains inside one app domain. Correct me if
iam wrong

Sep 6 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Sep 6, 11:39 am, Shiva Ramani
<ShivaRam...@discussions.microsoft.comwrote:
I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.

More like running different app domains inside one app domain. Correct me if
iam wrong

I'm not sure what your question is. Are you asking for architecture/
design advice? Are you asking the basics of how you would implement
this? Could you form coherent problem statement and repost?
Sep 6 '08 #2

P: n/a
I would like to know how i can call another windows application inside a
windows form.

"JDeats" wrote:
On Sep 6, 11:39 am, Shiva Ramani
<ShivaRam...@discussions.microsoft.comwrote:
I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.

More like running different app domains inside one app domain. Correct me if
iam wrong


I'm not sure what your question is. Are you asking for architecture/
design advice? Are you asking the basics of how you would implement
this? Could you form coherent problem statement and repost?
Sep 6 '08 #3

P: n/a
I don't believe this is possible. It is possible of course to launch a
separate process from your form, and to add a webbrowser control navigated
to your site within your form.

Have you ever seen any programs which contain a separate executable running
from within that apps main window?

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
>I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.

More like running different app domains inside one app domain. Correct me
if
iam wrong
Sep 7 '08 #4

P: n/a
On Sep 6, 6:13 pm, Shiva Ramani
<ShivaRam...@discussions.microsoft.comwrote:
I would like to know how i can call another windows application inside a
windows form.

"JDeats" wrote:
On Sep 6, 11:39 am, Shiva Ramani
<ShivaRam...@discussions.microsoft.comwrote:
I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe
New Parent WinApp : NewWinApp.exe
My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.
More like running different app domains inside one app domain. Correct me if
iam wrong
I'm not sure what your question is. Are you asking for architecture/
design advice? Are you asking the basics of how you would implement
this? Could you form coherent problem statement and repost
You can't embed one WinForm inside another. However, you could use
Reflection to create an loosely coupled reference to your other
application and if the Form classes are public then you could load
them and get/set public properties, call methods etc.... You could
also launch the target application using System.Diagnostic Process...

Looking back your top post it sounds as if you want to be able to keep
a top level menu in your container app and allow the end user to use
this menu to manipulate either the Windows or Web based child apps.
You may be able to accomplish the web bit using the web browser
control, but as someone else stated it's not possible to embed a
WinForm in this manner.

Sep 7 '08 #5

P: n/a
I agree launching web app is possible with webbrowser control. Few
applications inside our organization are using this kind of architecture in
VB forms. Parent VB forms hold multiple different systems inside its child
form.
I want to know if this is possible with .NET. if iam making use of
reflection is it possible to control the child app inside the parent
(container) app's domain.
"Family Tree Mike" wrote:
I don't believe this is possible. It is possible of course to launch a
separate process from your form, and to add a webbrowser control navigated
to your site within your form.

Have you ever seen any programs which contain a separate executable running
from within that apps main window?

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
I have a windows application with multiple forms & another web application.
Now I need a parent EXE or Application which need to act as a container to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should load
inside the form holder.

More like running different app domains inside one app domain. Correct me
if
iam wrong

Sep 7 '08 #6

P: n/a
As JDeats correctly stated, you could use reflection to add and control the
main form of the other application within your application. That is
different from adding the application to your form.

The biggest difference I could see is that if your container launched a
modal dialog, this child form would be inaccessable, wherein as a separate
executable, it would be independant and accessable. Also, if your child
form lauched a modal dialog, your container app would be inaccessable.

Since you said others in your organization are doing what you desire, then
you should ask the manner that they achieved it. I'm sure the community
here would like to understand how it is done.

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
>I agree launching web app is possible with webbrowser control. Few
applications inside our organization are using this kind of architecture
in
VB forms. Parent VB forms hold multiple different systems inside its child
form.
I want to know if this is possible with .NET. if iam making use of
reflection is it possible to control the child app inside the parent
(container) app's domain.
"Family Tree Mike" wrote:
>I don't believe this is possible. It is possible of course to launch a
separate process from your form, and to add a webbrowser control
navigated
to your site within your form.

Have you ever seen any programs which contain a separate executable
running
from within that apps main window?

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:60**********************************@microso ft.com...
>I have a windows application with multiple forms & another web
application.
Now I need a parent EXE or Application which need to act as a container
to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should
load
inside the form holder.

More like running different app domains inside one app domain. Correct
me
if
iam wrong

Sep 7 '08 #7

P: n/a
Can you pls explain me how adding & controlling the main form of other
application within my app is different from application to my form ?
"Family Tree Mike" wrote:
As JDeats correctly stated, you could use reflection to add and control the
main form of the other application within your application. That is
different from adding the application to your form.

The biggest difference I could see is that if your container launched a
modal dialog, this child form would be inaccessable, wherein as a separate
executable, it would be independant and accessable. Also, if your child
form lauched a modal dialog, your container app would be inaccessable.

Since you said others in your organization are doing what you desire, then
you should ask the manner that they achieved it. I'm sure the community
here would like to understand how it is done.

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:00**********************************@microsof t.com...
I agree launching web app is possible with webbrowser control. Few
applications inside our organization are using this kind of architecture
in
VB forms. Parent VB forms hold multiple different systems inside its child
form.
I want to know if this is possible with .NET. if iam making use of
reflection is it possible to control the child app inside the parent
(container) app's domain.
"Family Tree Mike" wrote:
I don't believe this is possible. It is possible of course to launch a
separate process from your form, and to add a webbrowser control
navigated
to your site within your form.

Have you ever seen any programs which contain a separate executable
running
from within that apps main window?

"Shiva Ramani" <Sh*********@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
I have a windows application with multiple forms & another web
application.
Now I need a parent EXE or Application which need to act as a container
to
these application.
Example :
My existing Web application : http://localhost/MyApp/Default.aspx
My existing Win Application : existingWinApp.exe

New Parent WinApp : NewWinApp.exe

My new winapp will have a menu & below which I will have a form holder.
Based on my menu selection (Winapp or webapp) respective app should
load
inside the form holder.

More like running different app domains inside one app domain. Correct
me
if
iam wrong



Sep 14 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.