I am trying to add an event in a VB.NET custom control and don't know how to do it. I know I need something like this:
Public Custom Event MyEvent As EventHandler
AddHandler(ByVal d As EventHandler)
RemoveHandler(ByVal d As EventHandler)
RaiseEvent(ByVal o As Sender, ByVal e As EventArgs)
but I don't know what to do from there. Another thing I'd like to do, if possible, is to make the event so that it is the default one created when you double-click on the control in a forms designer.
Any help would be greatly appreciated.