473,472 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Running windows/web application inside another windows application

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
7 4827
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Randy | last post by:
Hi, ok, I found a way to connect to a running instance of an (external) Internet Explorer and access - for example - the html source. That works fine! But now I have running application with...
7
by: MounilK | last post by:
Hi all, I am not sure if this is the right NG to post this question. If that's the case please point me to the correct NG. I have a class library(myLib.dll) which has a class(myClass) which has...
2
by: MattMenard | last post by:
I've written a C program that I want to run inside an Gui wrapper that I started to write in MFC. I have to select some files then kick off a process running the C program. I have the initial...
4
by: duzinga | last post by:
I am trying to have a server program that runs at startup and accepts several commands from the clients. One of the commands is to play an audio file. I am using...
14
by: William LaMartin | last post by:
If I have a Windows application with no form--only a module that starts with sub main and which has a system timer, in the elapsed event of which I want to run some code, how can I keep this...
4
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005, .net 2 for a C# windows application. I'm preparing a installation package and I want to add the vcredist_86.exe to my installation. I add this exe file to my Application...
3
by: lazycoder207 | last post by:
hello, i have a windows application which is fully self sufficient..it has a form with a few controls and the usual event handling... i made another windows application with a tabcontrol with a...
2
by: Lloyd Sheen | last post by:
While using VS 2005 Pro I get this about 50% of the time. I run the app. See whats wrong. Stop the app (stop debugging button). Make changes and then click the start debugging button. If I...
2
by: Z.K. | last post by:
I was wondering if someone could tell me why I get this message and how to prevent it. If I hit continue, it runs fine, but want to know what I am doing wrong so I won't get this error in the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.