if (this..WindowState = FormWindowState.Minimized)
{
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}
else
{
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.notifyIcon1.Visible = true; //窗体显示时,托盘图标不可见
}
{
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.notifyIcon1.Visible = false;
}
else
{
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.notifyIcon1.Visible = true; //窗体显示时,托盘图标不可见
}
解决方案 »
- CDO.Message ADODB.Stream 问题
- 【分享】正则匹配原理之——逆序环视深入
- 今天为何无法搜索?
- winform登录传值问题?
- 重载程序的问题
- 高分求!那位大侠有ActiveReports for .net(Version 3.0.0.1893)中文版注册码?
- 计算字符串的宽度
- Filter过滤文件格式问题
- 求解决方案:oracle in 内部有几千条记录,如何提高查询效率
- 关于字符串分割的问题,有原码?(在线等待)
- 屏蔽游戏 帮帮忙
- DateTime.toString("yy/MM/dd")和DateTime.toString("yy/MM/dd",InvariantInfo)方法加不不加IFormatProvider有何不同?
{
this.Visible = true;
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.notifyIcon1.Visible = true; //窗体显示时,托盘图标不可见
}
else //Here
if (this.Visible == true)// 当窗体可见时单击隐藏窗体
{
this.Visible = false;
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.notifyIcon1.Visible = true; //窗体显示时,托盘图标不可见
}