上面的方法名写错了,将aaa改成GetValue

解决方案 »

  1.   

    这位老大你都  
    this.Close();
    以下的程序还能在你内存中了吗?
    不提倡在OK中用Close()!!
      

  2.   

    论坛中相关话题多的是,建议提问之前搜一搜http://expert.csdn.net/Expert/topic/2037/2037595.xml?temp=.8475305
    http://expert.csdn.net/Expert/topic/2024/2024955.xml?temp=.7103845
    ...........
      

  3.   

    还是不好用啊,我已经改了,在启动页中public了一个变量,可是当我点弹出窗口中的button3时,回到启动窗口还是没有值,为什么?
      

  4.   

    Form1 bbb=new Form1();
    //这一行有问题。bbb不是原来的窗口了。
      

  5.   

    换一种思维,在启动页中读取弹出窗口的属性。
    public void ShowMyDialogBox()
    {
       Form2 testDialog = new Form2();   // Show testDialog as a modal dialog and determine if DialogResult = OK.
       if (testDialog.ShowDialog(this) == DialogResult.OK)
       {
          // Read the contents of testDialog's TextBox.
          this.txtResult.Text = testDialog.TextBox1.Text;
       }
       else
       {
          this.txtResult.Text = "Cancelled";
       }
       testDialog.Dispose();
    }