C#启动窗口程序时不显示主窗体
代码部分
private void Form1_Load(object sender, EventArgs e)
{
notifyIcon1.Visible = true; //托盘图标显示
this.WindowState = FormWindowState.Minimized; //启动时将窗体设置为最小化
this.ShowInTaskbar = false; //不在任务栏中显示
}