我最终用了这个方法:
1.MainForm的构造方法中添加:

public MainForm()
{
    InitializeComponent();

    this.ShowInTaskbar = false;
    this.Opacity = 0;
}

 

2.MainForm的Shown事件中添加:

private void MainForm_Shown(object sender, EventArgs e)
{
    this.Hide();

    this.ShowInTaskbar = true;
    this.Opacity = 1;
}

相关文章:

  • 2021-04-03
  • 2022-12-23
  • 2021-06-14
  • 2021-11-13
  • 2021-09-30
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2021-12-16
  • 2021-11-09
  • 2021-10-06
  • 2021-10-29
  • 2021-06-24
相关资源
相似解决方案