K
keith.thornhill
hi all,
lets say i have a usercontrol which implements a custom interface. like
so:
-------------------------------------------------
interface IMyInterface
sub buttonClick()
end interface
class MyParentControl
protected MyButton as Button
end class
class MyUserControl
inherits MyParentControl
implements IMyInterface
sub buttonClick() implements IMyInterface.buttonClick
end sub
end class
-------------------------------------------------
here's the catch. i want MyUserControl.buttonClick to also handle
MyButton.Click(), and i want the code that wires up that event to be in
MyParentControl, not MyUserControl.
is it possible? when i try to put "AddHandler MyButton.Click, AddressOf
Me.buttonClick" in MyParentControl, the compiler tells me that
buttonClick is not a member of MyParentControl (obviously)
not sure how i should move forward here. putting the AddHandler call
into MyUserControl is something i'd like to avoid.
thanks!
lets say i have a usercontrol which implements a custom interface. like
so:
-------------------------------------------------
interface IMyInterface
sub buttonClick()
end interface
class MyParentControl
protected MyButton as Button
end class
class MyUserControl
inherits MyParentControl
implements IMyInterface
sub buttonClick() implements IMyInterface.buttonClick
end sub
end class
-------------------------------------------------
here's the catch. i want MyUserControl.buttonClick to also handle
MyButton.Click(), and i want the code that wires up that event to be in
MyParentControl, not MyUserControl.
is it possible? when i try to put "AddHandler MyButton.Click, AddressOf
Me.buttonClick" in MyParentControl, the compiler tells me that
buttonClick is not a member of MyParentControl (obviously)
not sure how i should move forward here. putting the AddHandler call
into MyUserControl is something i'd like to avoid.
thanks!