473,748 Members | 11,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I hid the Dos window using Process lauching a C appliation

Hi, I'm using vs2005, .net 2, for windows application. How can U stop the
DOS windows creation when I redirect the stderr output from the C-code
application that I launch running from my C# program? I've tried setting
the process CreateNoWindow to true and set ProcessWindowSt yle.Hidden but it's
creating that black dos window in a flash and then close it.
Thank you.
--
Thanks.
Aug 7 '07 #1
4 2052
Pucca wrote:
Hi, I'm using vs2005, .net 2, for windows application. How can U stop the
DOS windows creation when I redirect the stderr output from the C-code
application that I launch running from my C# program? I've tried setting
the process CreateNoWindow to true and set ProcessWindowSt yle.Hidden but it's
creating that black dos window in a flash and then close it.
Thank you.
Which method are you using to start the application?

--
Göran Andersson
_____
http://www.guffa.com
Aug 7 '07 #2
Processs.Start( );
Is this the problem?
--
Thanks.
"Göran Andersson" wrote:
Pucca wrote:
Hi, I'm using vs2005, .net 2, for windows application. How can U stop the
DOS windows creation when I redirect the stderr output from the C-code
application that I launch running from my C# program? I've tried setting
the process CreateNoWindow to true and set ProcessWindowSt yle.Hidden but it's
creating that black dos window in a flash and then close it.
Thank you.

Which method are you using to start the application?

--
Göran Andersson
_____
http://www.guffa.com
Aug 7 '07 #3
Also, UseShellExecute is set to false.
--
Thanks.
"Göran Andersson" wrote:
Pucca wrote:
Hi, I'm using vs2005, .net 2, for windows application. How can U stop the
DOS windows creation when I redirect the stderr output from the C-code
application that I launch running from my C# program? I've tried setting
the process CreateNoWindow to true and set ProcessWindowSt yle.Hidden but it's
creating that black dos window in a flash and then close it.
Thank you.

Which method are you using to start the application?

--
Göran Andersson
_____
http://www.guffa.com
Aug 8 '07 #4
Oh, problem solved. I just needed to reboot my PC. Thank you.
--
Thanks.
"Göran Andersson" wrote:
Pucca wrote:
Hi, I'm using vs2005, .net 2, for windows application. How can U stop the
DOS windows creation when I redirect the stderr output from the C-code
application that I launch running from my C# program? I've tried setting
the process CreateNoWindow to true and set ProcessWindowSt yle.Hidden but it's
creating that black dos window in a flash and then close it.
Thank you.

Which method are you using to start the application?

--
Göran Andersson
_____
http://www.guffa.com
Aug 8 '07 #5

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

Similar topics

10
14732
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to in VB. I've created an ASP interface where a user can select an email group that populates a listbox with those email addresses. If a user sees an email in that list that they do not want then they can remove it by clinking the Delete button...
2
3308
by: Terry | last post by:
When launching our application with Internet Explorer already opened, but not pointing to our web server, the session variables disappear. If you open I.E. after launching our app, it works fine. It also works fine if you have the option set to 'Reuse Windows for Lauching Shortcuts' checked in the I.E. properties and launch our app from a shortcut, but it fails it you launch it from the I.E. favorites or some other method that won't take...
3
1582
by: Asterix2XXX | last post by:
I am trying to create a pop-up window that will remain in front of the orignal webpage. The pop-up is called as follows: <script type="text/javascript"> var newWin=null var winl = (screen.width-208)/2; var wint = (screen.height-228)/2; newWin=window.open("URL",'mywindow','left=' + winl + ',top=' +
11
5078
by: objectref | last post by:
Hi to all, is there a way to get the window handle of the main window of an application or process ? For example, if someone opens Microsoft Word, he gets a window so he/she can write text. Spy++ gives that this window is called _Wwg. How we can get a handle to this window assuming that we do not know beforehand the name of the process,
8
11534
by: Mészáros Tamás | last post by:
Hi all, how can I set an app's main window to visible from an other application? My problem is, that I know only the handle of the other app's main process, because the application's main window is set to hidden, so it doesn't have a mainwindowHandle, so I can't send a message to it. Any idea? Thank's in advance,
3
1684
by: Micus | last post by:
Greetings, I need to execute 2 applications from an application or batch file. The first app launched has the user enter a product key and the app's exit code will be 0 (failed) or 1 (succeeded). Based on the exit code of the first app, the second app will be run. My problems : Using a batch file to launch the applications produces an
5
3178
by: Benny | last post by:
I have a ASP.NET webservice and it is configured to run in a web garden with multiple processes. Whan a process in the garden is launched, I want the process to create a background thread. When request are received by this instance of the garden process, a meessage is posted to the background thread to do its work. When the garden process is being down by IIS (due to a period of inactivity), I want to notify the background thread to...
4
6408
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database to look a and I am loosing tremendious amounts of time trying to organize it so that I could view it. Regards, Alexandre Brisebois
0
1088
by: spamfilteraccount | last post by:
Hi, I have simple GUI with a listbox containing file names. If I select a file and press ENTER it should be opened. It works, but things are working strangely. Here's the code I use to open the selected file: Process process = new Process(); ProcessStartInfo psi = new ProcessStartInfo();
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3309
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 we have to send another system
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.