在Form0中执行如下代码, 理论上是否Form0 在Form1上面? 但实际情况是有时候Form1在Form0上面,也就说只能看到Form1(因为Form1是全屏窗体, Form0不是)。 为什么不能稳定呢?谢谢!Form1.Show(); this.btnErase.Visible = true;
 this.Show();
 this.Visible = true;
this.Invalidate();

解决方案 »

  1.   

    没道理啊。FORM1是从FORM0弹出来的。你想直接点FORM1都应该点不到
      

  2.   

    多谢楼上,有用! 只是我不明白, 我在Form0_Load和 Form1_Load里都设置了这句
             this.TopMost = true;难道在操作过程中这个属性会发生变化? 一定要在this.Visible = true;前重新赋值一下?
     this.btnErase.Visible = true;
    // this.Show();
    Form1.Show();this.TopMost = true;
     this.Visible = true;
    //this.Invalidate();
      

  3.   

    都设置了TopMost属性,哪个后设,哪个就在前面