Hi all,
For example if you have two forms the first one (name it Form1) include one textbox control and button , and when pressing button you want to pass the textbox text to the second form (name it Form2).
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepak SharmaPosted Nov 21, 2010, 11:42 PM
You can pass textbox value as a parameter of the second form.
Form2 frm2=new Form2(TextBox1.Text);
But for this you have to define a parameter in Form2 constructor.
Madhu KPosted Nov 21, 2010, 11:42 PM
http://codeincsharp.blogspot.com/2008/04/how-to-pass-values-to-another-form.html