c# - How to hide the console window -
this question has answer here:
- how can hide console window? 4 answers
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
Post a Comment