B
Beebs
I created a class to store some global variables that I need only if I
check the type of handheld and it matches. In my class, one of the
following shared Public variables is this:
Public Shared MyReaderHandler As New System.EventHandler(AddressOf
MyReader_Notify)
but I get the error:
Cannot refer to an instance member of a class from within a shared
method or shared member initializer without an explicit instance of
the class.
So how can I share this variable then cause I tried this:
Public Shared MyReaderHandler As New System.EventHandler(AddressOf
MyGlobals.MyReader_Notify)
and that didn't work either?
check the type of handheld and it matches. In my class, one of the
following shared Public variables is this:
Public Shared MyReaderHandler As New System.EventHandler(AddressOf
MyReader_Notify)
but I get the error:
Cannot refer to an instance member of a class from within a shared
method or shared member initializer without an explicit instance of
the class.
So how can I share this variable then cause I tried this:
Public Shared MyReaderHandler As New System.EventHandler(AddressOf
MyGlobals.MyReader_Notify)
and that didn't work either?