private void Form1_Resize(object sender, System.EventArgs e) {
if (this.WindowState == FormWindowState.Minimized) {
this.Visible = false;
this.notifyIcon1.Visible = true;
}
}

private void notifyIcon1_Click(object sender, System.EventArgs e) {
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-11-08
  • 2021-12-12
  • 2021-12-05
  • 2021-09-19
猜你喜欢
  • 2021-09-24
  • 2022-02-26
  • 2021-11-12
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案