G
Guest
I want to access a control (say a textbox) in a window (a form) from another
class (MyClass). Both my form class and MyClass are in the same project. Now,
since the controls are declared as internal (Friend in VB.NET), I shud be
able to acess them. Even though I'm able to get all the controls in
IntelliSense, I'm not able to set the values into them.
Dim myVBForm As New MyForm()
myVBForm.TextBox1 = "Hello"
Any insight into this is greatly appreciated.
Thanks.
class (MyClass). Both my form class and MyClass are in the same project. Now,
since the controls are declared as internal (Friend in VB.NET), I shud be
able to acess them. Even though I'm able to get all the controls in
IntelliSense, I'm not able to set the values into them.
Dim myVBForm As New MyForm()
myVBForm.TextBox1 = "Hello"
Any insight into this is greatly appreciated.
Thanks.