J
J. Moreno
I have an event handler (for keypress) and I want to use it multiple forms.
What's the best way of doing this?
I tried using
Public Sub cmbHandleKeyPress _
(Byval Sender as Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) _ Handles cmbMyMenu.Keypress,
frmOther.cmbOtherMenu.KeyPress
End Sub
but I get a build error.
Either I'm the first to think of this, or it's a really dumb thing to do,
because I can't find anyone else asking about it...
What's the best way of doing this?
I tried using
Public Sub cmbHandleKeyPress _
(Byval Sender as Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) _ Handles cmbMyMenu.Keypress,
frmOther.cmbOtherMenu.KeyPress
End Sub
but I get a build error.
Either I'm the first to think of this, or it's a really dumb thing to do,
because I can't find anyone else asking about it...