using
System;
using System.Diagnostics;
namespace WindowsApplication2
... {
public class Form1 : System.Windows.Forms.Form
...{
public Form1()
...{
}
[STAThread]
static void Main()
...{
Process p=new Process();
p.StartInfo.FileName="cmd.exe";
p.StartInfo.WindowStyle=ProcessWindowStyle.Normal;//这里可以让程序从任务栏消失
p.Start();
p.Close();
}
}
}
using System.Diagnostics;
namespace WindowsApplication2
... {
public class Form1 : System.Windows.Forms.Form
...{
public Form1()
...{
}
[STAThread]
static void Main()
...{
Process p=new Process();
p.StartInfo.FileName="cmd.exe";
p.StartInfo.WindowStyle=ProcessWindowStyle.Normal;//这里可以让程序从任务栏消失
p.Start();
p.Close();
}
}
}