Hi,
How can transfer a text of textbox from a C# form to another C# form?
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.
omidPosted Jul 28, 2009, 4:24 PM
in Form2 :
in Form1 you can use this way to retrieve textbox val using getTextBoxVal() function :
shimaPosted Jul 28, 2009, 11:50 PM
bharatPosted Jul 28, 2009, 7:46 AM
public static class abc
{
public static string a;
}
abc.a=TextBox1.text;
in form2
using abc.a gives u the text in textbox
use access modifiers according to ur need
Niradhip ChakrabortyPosted Jul 28, 2009, 6:08 AM
form2.Controls["textBox1"].Text = this.textBox1.Text;
this.Close();
shimaPosted Jul 26, 2009, 12:08 AM
How can use static class for this problem?!
Please say an example...
bharatPosted Jul 25, 2009, 5:51 AM