当前位置:编程学习 > C#/ASP.NET >>

@@@@@@@隐藏窗体双击显示窗体时statusBar1不显示@@@@@@@

主窗体有个statusBar1和notifyIcon1。

notifyIcon1的代码
 private void notifyIcon1_DoubleClick(object sender, EventArgs e)
        {
            this.Visible = true;
            this.WindowState = FormWindowState.Normal;
            this.TopMost = true;
            notifyIcon1.Visible = true;
        }
        private void notifyIcon1_Click(object sender, EventArgs e)
        {
            this.Visible = false; notifyIcon1.Visible = true; this.TopMost = false;
        }


现在奇怪的是第一次双击notifyIcon1_DoubleClick时,显示窗体但是上面的statusBar1不显示
再单击隐藏窗体再双击显示窗体时再会显示。。。也就是说第一次显示隐藏的窗体时不显示statusBar1控件。。。

statusBar1我的赋值方法 statusBar1.Panels[0].Text --------------------编程问答-------------------- 先帮顶一下 --------------------编程问答-------------------- TopMost=false,不能隐藏窗体吧!
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,