窗体最小化时,不挡住任务栏
2020-11-19 18:19
标签:tar c width a name for /// private void
notifyIcon1_Click(object sender, EventArgs
e) 窗体最小化时,不挡住任务栏,搜素材,soscw.com 窗体最小化时,不挡住任务栏 标签:tar c width a name for 原文地址:http://www.cnblogs.com/markli/p/3708761.html
///
窗体最小化时,隐藏到系统托盘
///
///
///
private
void MainFace_SizeChanged(object sender, EventArgs
e)
{
if
(this.WindowState == FormWindowState.Minimized)
{
this.Hide();
this.notifyIcon1.Visible =
true;
}
}
{
this.Visible = true;
this.WindowState =
FormWindowState.Maximized;
this.MaximumSize = new
System.Drawing.Size(Screen.PrimaryScreen.WorkingArea.Width,Screen.PrimaryScreen.WorkingArea.Height+6);
this.notifyIcon1.Visible = false;
}