E
Eh
I have a project containing a WindowsForm and a module and
need to set the text property on a label control on the
form from the module.
here's the code (from MS Framework .Net Doc):
Dim test as Form2 = Form2.ActiveForm
Dim i As Integer
For i = 0 To test.Controls.Count - 1
MsgBox(test.Controls(i).Name)
Next
When I run this I get a System.NullReferenceException:
Object reference not set to an instance of an object
Any ideas anyone ?
need to set the text property on a label control on the
form from the module.
here's the code (from MS Framework .Net Doc):
Dim test as Form2 = Form2.ActiveForm
Dim i As Integer
For i = 0 To test.Controls.Count - 1
MsgBox(test.Controls(i).Name)
Next
When I run this I get a System.NullReferenceException:
Object reference not set to an instance of an object
Any ideas anyone ?