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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -