Visual Studio 2019 C# Winforms 相关记录
改变窗体
this.SizeChanged += Form1_SizeChanged;
...
private void Form1_SizeChanged(object sender, EventArgs e){
//操作代码
}
NotifyIcon1鼠标左右键
private void NotifyIcon1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
//右键