sharing the control
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
Sir/Madam, Can i share my contol (textbox) - which is placed in the form - with other foms Thanks and Regads Pankaj
Yes , Remember form is Public Class, so you can get the values of textbox
Develop2Program & Program2Develop
-
Sir/Madam, Can i share my contol (textbox) - which is placed in the form - with other foms Thanks and Regads Pankaj
well you can do this thing by making a public member object look at this in form one under a button clicking event dim myform as new form2 myform.yourpublicmember= textbox1.text in form two in form load event Public YourPublicMember As String Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Label1.Text = YourPublicMember End Sub