How to hide the DOS console of a program started by a dotnet application on Win98

How to hide the DOS console of a program started by a dotnet application on Win98

Post by Jason Ha » Thu, 13 Nov 2003 13:45:19


I have a .NET Windows application which launches another .NET console
application using
Start() method in the Process class. I set the StartInfo.CreateNoWindow to
true. But
on Windows98, the console still shows up (on XP and 2000, no window shows
up).
Could anyone tell me how to hide the console window?

Thanks in advance for the help.

Jason
 
 
 

How to hide the DOS console of a program started by a dotnet application on Win98

Post by Gary van d » Thu, 13 Nov 2003 13:51:59

HI

Go into the properties of your project, an check that the "Output type" is
set to "Windows Application" and to "Console Application".

Gary




to

 
 
 

How to hide the DOS console of a program started by a dotnet application on Win98

Post by Michael Gi » Fri, 14 Nov 2003 01:45:01

Do you have control of the other application (source?). If so, you could
call "FreeConsole". However, to achieve this just with Process, I believe
you need to make sure you redirect StandardInput, Output, and Error.
-mike
MVP



to