0
How to copy one text box on another text box?
Hi, In form1 i have text box,i want to when click in a button in form1, form2 open and value of text box in fom1 show in text box of form2 I hope to send my intention😊
1 ответ
0
You can reference the textbox directly. Example:
Private void myButtonClick()
{
MyFormClass myForm = new MyFormClass();
myForm.TextBox1.Text = this.TextBox1.Text;
myForm.Show();
}
This code is just an example, you must write it according your needs.