Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working on VB.Net window application. i have a button in form1. On button click event 1 open form2..

VB
Dim slice As New form2()
slice.Show()


Suppose i have open 3 form2. Now how do i change/update some value/data in form2(2nd opened) from form1 ?

Please help
Posted

 
Share this answer
 
 
Share this answer
 
Comments
kals84 17-Nov-11 2:55am    
guys i need to pass data in opened form.. not when form load
Why not you try this
CodeProject Results on Google
 
Share this answer
 
suppose you want to pass data of textfield on form1 to textfield of form2



then use this

VB
Form2.TextBox1.Text = Form1.TextBox1.Text
 
Share this answer
 
v2
Comments
kals84 17-Nov-11 3:57am    
there are many form2 (remember: on each button click a new form2 open)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900