你可以把b窗口中的Label1范围设成public,在打开B窗口的地方这么写:
FprmB f=new FormB();
f.ShowDiaog();
this.label1.text=f.label1.text

解决方案 »

  1.   

    方法很多,我说一种最普遍的传递构造函数如:
    public form2 f2;
    form1(form2 f)
    {
       f2=f;
      ....
    } void button_click(object sender ,event e){
       f2.close();
    }这样就可以传递值当然,如果你用static object o;然后来也可以更具体事例搜索本论坛,答了太多这样的帖子
      

  2.   

    try this:
    A Page:
    var returnValue = window.ShowModalDialog("b.aspx");
    document.all.Label1.value = returnValue;B Page:
    function window_onunload()
    {
      window.returnValue = document.all.Label1.value;
    }