lbuntha Level: Scholar
 Registered: 05-05-2006 Posts: 39
|
Re: declare textbox from another form to another form
I don know what language you are using (C# or Vb.net). But I want tell you if you are using C#, it requires you declare public modifier.
example:
Form1
public TextBox txt1=new TextBox;
public TextBox txt2=new TextBox;
___________________________________________
Form2
you can call all input in the form1 to the form2.
private TextBox txt3=new TextBox;
private TextBox txt4=new TextBox;
txt3.Text=form1.txt1.Text;
txt4.Text=form1.txt2.Text;
--------------------------------------
Thanks and best regards!
____________________________
ly buntha
|