|
-
September 11th, 2008, 09:14 AM
#1
passing data from Form2 to Form1
Hi,
I have 2 forms , Form1 and Form2. When I click on the "Ok" buttom of the Form 1, it creates an instance of Form2 as below
Form2 newform = new Form2();
newform.Show();
Form2 has a textbox which accepts input from user. I am able to get the Form2 and its textbox, but I am having problems of passing data from Form2 to Form1. Sending data from Form1 to Form2 is not a problem. But here it is the reverse case. How do i pass the data in textbox of Form2 to Form1 ??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|