Hi JC
I would deal with this by having a Protected Overridable method in your base
class, and in your event handler, call this method. Then in the derived
class, override the method.
Base Form:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
ClickThing()
End Sub
Protected Overridable Sub ClickThing()
MessageBox.Show("base")
End Sub
Derived Form:
Protected Overrides Sub ClickThing()
MessageBox.Show("derived")
End Sub
HTH
Nigel Armstrong
"JC Voon" wrote:
Hi:
My base form has a button, when click it will call MessageBox.Show(
"Base form" ). I inherite a child form from the base and assign a
button click event to the same button which will call MessageBox.Show(
"Inherited form" ). I run my application, and load the clild form,
click the button it show both message !!!
Is there any way to control the event sequence so that it only show
the child form event, or i can control whether to trigger the base
form event or not.
Thanks
JCVoon