Exchange of data between forms [C#]
#1

Hey guys. Im gonna get the data from Form1 to Form2.

This is mine code:

            Form1 form = new Form1();
            this.hash_user.Text = form.textBox36.Text;

this.hash_user.Text is the field from the current form, textBox36 is the field from Form1.

 

This does not work. Field in Form2 is still empty.

Although I have already tried to use form.ShowDialog() and form.Show() but nothing happens

 

Any idea how to do it?

 

Thanks in advance.



Messages In This Thread
[No subject] - by Paramount - 08-06-2013, 01:24 PM
[No subject] - by someone - 08-06-2013, 04:52 PM
[No subject] - by Paramount - 08-06-2013, 04:56 PM
[No subject] - by someone - 08-06-2013, 06:14 PM
[No subject] - by Paramount - 08-06-2013, 08:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)