c# - How to hide the console window -


this question has answer here:

we have legacy app should have been service built service , when it's running don't want console displayed.

is there way of hiding console window in windows console application and/or minimising console window system tray (not taskbar), bring when double clicked in system tray? have done winform not sure if it's possible on console app.

thanks

this hide console window:

  processstartinfo startinfo = new processstartinfo();   startinfo.createnowindow = true;   startinfo.useshellexecute = false;   startinfo.filename = "yourapp.exe";   startinfo.createnowindow = true;   startinfo.windowstyle = processwindowstyle.hidden; 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -