|
-
December 4th, 2008, 02:05 AM
#1
passing value between forms
Hi,
I have winForm (form1 and form2)
On Form1 I have Textbox (txtBox1 and form2 txtbox2 )
On click of button I load form2 ie form2.showDialog() ..I have to display value entered in Txtbox2 in form1 textbox (txtbox1)
NOTE : Form1 would be open first.. (How can i reload the form1 back again to show the txtBox2 value)
-
December 4th, 2008, 02:34 AM
#2
Re: passing value between forms
as long as you didn't dispose form2, its value stays there..
in button click event:
Code:
dim frm as new form2()
frm.showdialog(me)
me.textbox1.text = frm.textbox2.text
frm.dispose()
hth
Busy 
-
December 4th, 2008, 02:50 AM
#3
Re: passing value between forms
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
|