J
john
OK,
The problem isn't with Addhandler, it's with my
understanding of Shared...
I add a handler like this:
AddHandler ct.ColumnChanged, New _
DataColumnChangeEventHandler(AddressOf OnColumnChanged)
from within a Private Sub.
My handler is defined as:
Private Shared Sub OnColumnChanged(ByVal sender As _
Object, ByVal args As DataColumnChangeEventArgs)
When I attempt to set the state of a button in my form
using the
syntax "<squiggle>me.btnUpdate<squiggle>.Enabled = True"
I receive this error:
Cannot refer to an instance member from within a shared
member initializer without an explicit instance of the
class.
Isn't the button on my form an explicit instance of a
class?
Am I trying to do something that doesn't make sense?
Should I be reading up on Object references?
I sure would appreciate some insights. While I'm out here
I'll try to answer a couple of questions myself.
Thanks,
John
The problem isn't with Addhandler, it's with my
understanding of Shared...
I add a handler like this:
AddHandler ct.ColumnChanged, New _
DataColumnChangeEventHandler(AddressOf OnColumnChanged)
from within a Private Sub.
My handler is defined as:
Private Shared Sub OnColumnChanged(ByVal sender As _
Object, ByVal args As DataColumnChangeEventArgs)
When I attempt to set the state of a button in my form
using the
syntax "<squiggle>me.btnUpdate<squiggle>.Enabled = True"
I receive this error:
Cannot refer to an instance member from within a shared
member initializer without an explicit instance of the
class.
Isn't the button on my form an explicit instance of a
class?
Am I trying to do something that doesn't make sense?
Should I be reading up on Object references?
I sure would appreciate some insights. While I'm out here
I'll try to answer a couple of questions myself.
Thanks,
John