private sub button1_click(byval sender as system.object, byval e as _ system.eventargs) handles button1.click static counter as integer = 0 counter += 1 messagebox.show (" this button has been clicked " & _ counter.tostring() & " times.") end sub
protected overridable sub button1_click(byval sender as system.object, _ byval e as system.eventargs) handles button1.click static counter as integer = 0 counter += 1 messagebox.show (" this button has been clicked " & _ counter.tostring() & " times.") end sub
protected overrides sub button1_click(byval sender as system.object, _ byval e as system.eventargs) static counter as integer = 0 counter += 1 messagebox.show (" this inherited button has been clicked " & _ counter.tostring() & " times.") end sub