windows form 中,我从textbox中取来的数据怎么传到另外一个form中,并使用他呢?

解决方案 »

  1.   

    定义要打开的 form1 的时候 写个参数,窗体其实也是一个‘方法’
     private form1(string str)
    {
         in......();
         this.textbox2.text=str;
    }
    在你打开窗体的时候例如:form1 frm=new form1(textbox1.text)
      

  2.   

    public class Form2 : System.Windows.Forms.Form
    {
    Form1 myfrm;
    private void update()
    {
    myfrm.textBox1.Text=this.textBox1.Text;
    myfrm.textBox2.Text=this.textBox2.Text;
    }
      

  3.   

    能不能说详细点阿,我刚接触c/s的东西, 各位高手,谢谢了,还有怎么在c#中调用系统存储过程阿!!