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😊

25th Jun 2020, 6:33 AM
Gadir
Gadir - avatar
1 Resposta
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.
25th Jun 2020, 9:17 PM
Benjamin Alejandro Luna
Benjamin Alejandro Luna - avatar