Winform启动时隐藏不显示
2021-07-13 00:08
标签:启动 event winform task info ide bar component pretty 我最终用了这个方法: 2.MainForm的Shown事件中添加: Winform启动时隐藏不显示 标签:启动 event winform task info ide bar component pretty 原文地址:https://www.cnblogs.com/lehoho/p/9583460.html
1.MainForm的构造方法中添加:public MainForm()
{
InitializeComponent();
this.ShowInTaskbar = false;
this.Opacity = 0;
}
private void MainForm_Shown(object sender, EventArgs e)
{
this.Hide();
this.ShowInTaskbar = true;
this.Opacity = 1;
}