Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to pass value from one page to other in vb.net????

i have tried the below given code:--
Private _passedText As String
Public Property [PassedText]() As String
Get
Return _passedText
End Get
Set(ByVal Value As String)
_passedText= Value
End Set
End Property
Then , when you are declaring Object from Form2 you just set The Value before Showing the Form
in the Form1 and in Button1 Click event write these lines :
VB.NET Syntax (Toggle Plain Text)
Dim Obj As New Form2Obj.PassedText = TextBox1.TextObj.ShowDim Obj As New Form2
Obj.PassedText = TextBox1.Text
Obj.Show
plzz help me...
Posted

1 solution

Hi...

Design a Static Class with Static Variables. Assign values in Firts Form (say Form1) and use it in other form (say Form2)..

This is one way to communicate data between two window forms... try it.

Regards,
SureshKumar
 
Share this answer
 
Comments
sanug 16-Aug-10 3:27am    
thanx a lott:)

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