文件名称:C#窗体在靠近屏幕边时隐藏显示
文件大小:190KB
文件格式:RAR
更新时间:2020-09-22 13:54:06
隐藏,C#,
C#窗体在靠近屏幕边时隐藏显示 这里只有一部分核心代码 private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e) { this.notifyIcon1.Visible = true; base.ShowInTaskbar = false; this.Activate(); this.Show(); base.WindowState = FormWindowState.Normal; } private void Form1_SizeChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { this.notifyIcon1.Visible = true; base.ShowInTaskbar = false; base.Hide(); } } private void 还原ToolStripMenuItem_Click(object sender, EventArgs e) { this.notifyIcon1.Visible = true; base.ShowInTaskbar = false; this.Activate(); this.Show(); base.WindowState = FormWindowState.Normal; } private void 关闭ToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); }
【文件预览】:
窗体隐藏显示
----ppppppppppppppppppp()
--------Form1.cs(3KB)
--------Program.cs(500B)
--------Form1.resx(153KB)
--------Properties()
--------Form1.Designer.cs(4KB)
--------obj()
--------bin()
--------ppppppppppppppppppp.csproj(4KB)
----ppppppppppppppppppp.sln(899B)
----ppppppppppppppppppp.suo(20KB)