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

  • Thread starter Thread starter Jason Han
  • Start date Start date
J

Jason Han

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
 
HI

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

Gary
 
Hi,

Try setting,

StartInfo.WindowStyle = ProcessWindowStyle.Hidden

this should do the trick...

Regards,
Madhu

MVP | MCSD.NET
 
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
 
Back
Top