也是用了这些代码的!
=============================================
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState==FormWindowState.Minimized)
{
this.Hide();
this.ShowInTaskbar = false;
notifyIcon1.Visible = true;
} } private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
if(this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
{
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.Activate();
this.ShowInTaskbar = true;
} }
=========================================
点击窗口最小化按钮后就什么也看不见了,NotifyIcon怎么不见在右下角显示呢????
=============================================
private void Form1_SizeChanged(object sender, System.EventArgs e)
{
if(this.WindowState==FormWindowState.Minimized)
{
this.Hide();
this.ShowInTaskbar = false;
notifyIcon1.Visible = true;
} } private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
{
this.Show();
if(this.WindowState == System.Windows.Forms.FormWindowState.Minimized)
{
this.WindowState = System.Windows.Forms.FormWindowState.Normal;
this.Activate();
this.ShowInTaskbar = true;
} }
=========================================
点击窗口最小化按钮后就什么也看不见了,NotifyIcon怎么不见在右下角显示呢????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货