1

I am writing a code that open a program like :

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 is not a dot net program. I want to hide the icon of this program from the taskbar.

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272

2 Answers2

0

Try

aProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
Tom Studee
  • 10,316
  • 4
  • 38
  • 42
0

Agree Tom Studee. If you want to display window and hide icon in the taskbar,please set ShowInTaskbar=false of the window in the MyApp.exe.

user2492798
  • 589
  • 1
  • 4
  • 8