打开了A窗口,A窗口里通过代码打开B窗口,A和B都是相互独立的窗口,默认是B窗口打开后覆盖在A窗口上方。现在我需要B窗口打开后显示在A窗口后面?

解决方案 »

  1.   

    SF 哈哈 终于坐到 SF了
      

  2.   

    web:
    //在a页给某input设个焦点或刷新应该还是在前面,或者在b页刷新a页或给a页某input设焦点
    a页:
    window.open('b...);
    //document.getElementById('aaaaa').focus();
    //window.location.href=window.location.href;
    b:
    //window.opener.document.getElementById('aaaaa').focus();
    //window.opener.location.href=window.opener.location.href;
      

  3.   


                Form2 f2 = new Form2();
                f2.Show();
                this.Activate();
      

  4.   

    楼上正解
    也可以调整Z顺序:
    Form2 f2 = new Form2();
    f2.Show();
    f2.BringToFront();
    this.BringToFront();
      

  5.   

    form2 f2=new form2();
    f2.show();
    f2.sendToBack();
    焦點仍在f2上
      

  6.   

    FormB B = new FormB();
    B.Show();
    B.SendToBack();
    A.BringToFront();
    A.TopMost = true;
    A.Focus();