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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -