Acess Form Controls
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all: I Have 2 controls in Form1 (TextBox1 and Command1). TextBox1.Text = "111" Then I have a class (myClass.vb) that inherits Form1 This class as a: Sub ChangeText() dim objForm1 as New Form1 objForm1.TextBox1.Text = "222" End Text When I click on Command1 i want to go to the ChangeText() in the other class and change TextBox1.Text Sub Command1_OnClick dim objmyClass as New myClass objmyClass.ChangeText() End Sub But it doesn't work :(( How can I change TextBox1 properties or other Control properties that are in Form1.vb from a sub that is in myClass.vb? Thanx in advance. Bruno