Say I have an member (e.g., Button1) of an object (e.g., Form1) that is delared using withevents (e.g., Form1.Button1_Click), and there is a handler with 'Handles' in that object.
If I override it (say, Form2.Button1_Click), will the handler call the overriden version (like me.Button1_Click) or the one with the actual handles on it (like MyClass.Button1_Click)?
Here's what I tried:
Public Class Form1
Public Overridable Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("Form1's Button")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim f2 As New Form2
f2.Show()
End Sub
End Class
Public Class Form2
Inherits Form1
Public Overrides Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox("Form2's Button")
End Sub
End Class