假如有三个窗体
A,B,C
要让A始终在最下面 不能隐藏
软件启动 窗体A初始化 ,点击A某个按键 弹出B 点击窗体B的某个按键弹出C窗体A 弹出 窗体B的时候 代码如下B = new B();
this.Hide();
B.ShowDialog();
this.Visible = true;B弹出C的时候也这样C = new C();
this.Hide();
C.ShowDialog();
this.Visible = true;现在问题是C弹出后 A就隐藏到任务栏去了
怎么让A一直在下面显示 不隐藏
在XP运行没有问题 在wince里运行时 A隐藏
怎么解决 谢谢

解决方案 »

  1.   

    让窗体状态最小化
    this.WindowState == FormWindowState.Minimized
      

  2.   

    B = new B();  
    B.Show(); 
    this.Visible = true;
    C = new C(); 
    this.Hide(); 
    C.ShowDialog(); 
    this.Visible = true;
      

  3.   

    B = new B();  
    B.Show(); 
    this.Visible = true; 
    C = new C(); 
    this.Hide(); 
    C.ShowDialog(); 
    this.Visible = true;D = new D(); 
    this.Hide(); 
    D.ShowDialog(); 
    this.Visible = true;
    程序中我就是这么写的
    不过是进入第四个窗口的时候 窗口A隐藏到了任务栏中
      

  4.   


    WinCE的系统问题,有的系统只允许桌面显示一个窗体,
      

  5.   

    用topMost是不是比较好一点呢?