c# - How to hide a window from the taskbar when started using System.Diagnostics.Process -


this question has answer here:

i writing code open program :

system.diagnostics.process aprocess = new system.diagnostics.process(); aprocess.startinfo = new system.diagnostics.processstartinfo(     system.io.path.combine(environment.getfolderpath(         environment.specialfolder.applicationdata), @"myapp.exe")); aprocess.start();  

myapp.exe not dot net program. want hide icon of program taskbar.

try

aprocess.startinfo.windowstyle = system.diagnostics.processwindowstyle.hidden; 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -