G
Guest
HI,
I am attempting to write to the StatusBar on MyForm from within a class that
I wrote. In the following code, VB does not like 'MyForm.StatusBar1.' VB
states, ' Reference to a non-shared member requires an object reference.'
Can you explain what VB is telling me and how can I resolve this problem.
I'm relatively new to OOP and .NET. Thanks.
Private Sub StatusUpdate()
MyForm.StatusBar1.Text = "Item " + CStr(Indx + 1) + " of " +
CStr(MyCount)
End Sub
I am attempting to write to the StatusBar on MyForm from within a class that
I wrote. In the following code, VB does not like 'MyForm.StatusBar1.' VB
states, ' Reference to a non-shared member requires an object reference.'
Can you explain what VB is telling me and how can I resolve this problem.
I'm relatively new to OOP and .NET. Thanks.
Private Sub StatusUpdate()
MyForm.StatusBar1.Text = "Item " + CStr(Indx + 1) + " of " +
CStr(MyCount)
End Sub