Hello everyone I'm new to c#, using visual c# 2010 and I'm trying to learn the basics.
I've created two forms (Form1 and Form2)
each form has a text box and a button
my experiment( form1 to form2) is as follows:
I've declared a string
public string deneme; I made both text boxes public, and in form 1 button I write the following:
deneme= textbox1.text;
Form2 frm2 = new Form2();
form2.show();
form2.textbox1.text= deneme;
when I do this it works and I see my input on form2 textbox. What I want to do is; to press the button on form1 and open form2, then write something on the text box and display that input on form1 text box, I use the same method but it returns nothing.. what an I doing wrong?
and I'm sorry for my bad english