473,385 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Hosting EXE Application in a Winform?

Hi!
It's possible to Host a exe application in a winform?

Thanks
Nov 27 '07 #1
6 8705
On Nov 27, 8:37 pm, Kevin <Ke...@discussions.microsoft.comwrote:
Hi!
It's possible to Host a exe application in a winform?

Thanks
Hi Kevin,
Whether you want a new EXE to be started form your Form
or execute it inside your form.

If you want to just execute external EXE, then you can
always use the Process class.

Thanks,
coolCoder

----------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
Nov 27 '07 #2
Hi CoolCoder,
I found this article:
http://www.codeproject.com/cs/miscctrl/AppControl.asp

"coolCoder" wrote:
On Nov 27, 8:37 pm, Kevin <Ke...@discussions.microsoft.comwrote:
Hi!
It's possible to Host a exe application in a winform?

Thanks

Hi Kevin,
Whether you want a new EXE to be started form your Form
or execute it inside your form.

If you want to just execute external EXE, then you can
always use the Process class.

Thanks,
coolCoder

----------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
Nov 27 '07 #3
On Nov 27, 9:01 pm, Kevin <Ke...@discussions.microsoft.comwrote:
Hi CoolCoder,
I found this article:http://www.codeproject.com/cs/miscctrl/AppControl.asp

"coolCoder" wrote:
On Nov 27, 8:37 pm, Kevin <Ke...@discussions.microsoft.comwrote:
Hi!
It's possible to Host a exe application in a winform?
Thanks
Hi Kevin,
Whether you want a new EXE to be started form your Form
or execute it inside your form.
If you want to just execute external EXE, then you can
always use the Process class.
Thanks,
coolCoder
----------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
Hi Kevin,
Thanks for the link. This was a new concept for me. May I
know why you wanted to host another EXE within your application; just
curiosity and of course if you don't mind it.
Nov 28 '07 #4
Hello Kevin,
I also want to run an external application and show it in a windows .net
form. Unfortunally the link to codeproject doesn't work. Can you reply me the
article please or do you have an example for me ?

Thanks for that,

Erwin

"Kevin" wrote:
Hi CoolCoder,
I found this article:
http://www.codeproject.com/cs/miscctrl/AppControl.asp

"coolCoder" wrote:
On Nov 27, 8:37 pm, Kevin <Ke...@discussions.microsoft.comwrote:
Hi!
It's possible to Host a exe application in a winform?
>
Thanks
Hi Kevin,
Whether you want a new EXE to be started form your Form
or execute it inside your form.

If you want to just execute external EXE, then you can
always use the Process class.

Thanks,
coolCoder

----------------------------------------------------------------------------------------------------------------------------------------------------
If you find this post helpful, please rate it.
Dec 6 '07 #5
using System.Threading;

private void Startnewformthread()
{
frmMyform frm = new frmMyform();
frm.Show();
//here do a loop while the form exist, just be sure to put a
DoEvents
//and a certain pause timer to not make it run 100000 times per
second
//for sleep use this : System.Threading.Thread.Sleep(1000);
//1000 = 1 second
}

somewhere in the code

Thread t = new Thread(new ThreadStart(Startnewformthread));
t.Start();
Dec 6 '07 #6
Hi,

Franck <th***********@hotmail.comwrites:
using System.Threading;

private void Startnewformthread()
{
frmMyform frm = new frmMyform();
frm.Show();
//here do a loop while the form exist, just be sure to put a
DoEvents
//and a certain pause timer to not make it run 100000 times per
second
//for sleep use this : System.Threading.Thread.Sleep(1000);
//1000 = 1 second
}

somewhere in the code

Thread t = new Thread(new ThreadStart(Startnewformthread));
t.Start();
You shouldn't run your own message loop on a seperate thread. If you
want two or more independent message loops, use Application.Run(frm) on
the appropriate thread.

Also make sure to not access any control on another thread without an
appropriate call to Control.Invoke().

Best regards,
Martin
Dec 7 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Victor Hadianto | last post by:
Hi, I wonder if the following is possible to do. Say I have created my own document format and a document handler, much like Microsoft Word doc and Microsoft Word itself. Now is it possible to...
0
by: jeff | last post by:
Hi, Does anyone know if there is any paper on web talking about why should port existing MFC application to pure dotnet application (WinForm)? what kind of cost will it be? Thanks in advance ...
2
by: J.Marsch | last post by:
Ok, so here's a problem you probably don't see every day: We are building an application that must run in a browser, but we need to do some things client-side that would be rather difficult to...
3
by: dph | last post by:
I have an asp.net application that I need to run from multiple different virtual directories. However, I don't want simply copy an instance of the application into each of these directories as...
3
by: Larry Hunt | last post by:
I am developing a class which will be used in both a WinForm and ASP.NET 2.0 application. The class needs to know which type of application it is running in. How do you programmatically determine...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
2
by: =?Utf-8?B?RWl0YW4=?= | last post by:
Hello, My application, winform, need to share data between multiple dialog boxes? What would be the best way to do it? Thanks, EitanB
5
by: Smithers | last post by:
I'm writing a code library that needs to be reused between a Windows Forms application and and an ASP.NET Web application. The library needs to do a couple of things differently depending on the...
5
by: Gav | last post by:
I'm writing a windows application (using C# VS 2005 Pro) to access a MS SQL database and although it is working fine (up to now) I'm not sure I'm going about it in the best way. Can anybody point...
5
by: UdayKumarB | last post by:
Hi All, Did Anyone of you are aware of How to Find Windows Application(Winform) Idle time and If so, Close the Application. Thanks, Uday.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.