我其实是做了一个托盘程序。
关了程序主(main窗体)界面后(在this.closing里面),把主界面设置为隐藏,产生一个拖盘。当我双击拖盘,托盘没掉,主界面出现,问题是:在拖盘窗体下。用main.  后面没有那个显示属性,怎么设置可见性的,谢谢。

解决方案 »

  1.   

    main???
    你的双击拖盘事件应写到main这个窗体里的.这样的话就可以了:
    this.Visible=true;

    this.Show();
      

  2.   

    显示主窗口
    this.Visible=true;
    this.notifyIcon1.Visible = false;
    隐藏主窗口
    this.Visible=false;
    this.notifyIcon1.Visible = true;
      

  3.   

    如果你的主窗体name为MainForm
     则
      MainForm frm =new MainForm();
      frm.Show();
     就可以Show出主窗体了!!!