P
Phill. W
How do I propagate an Event that I've just handled?
I have a UserControl containing, among other things, a TextBox.
The UserControl handles KeyDown/KeyPress Events for both itself
and the TextBox, as in
Private Sub TextField_KeyDown( _
ByVal sender As Object _
, ByVal e As System.Windows.Forms.KeyEventArgs _
) Handles MyBase.KeyDown, txtField.KeyDown
My problem is that I'd /also/ like the Outside World to be able to
receive these Events as well. Should it be as simple as calling
MyBase.OnKeyDown()
within the above Event Handler?
Or is that going to give me a nasty loop, with the UserControl
handling its own Event, over and over again?
TIA,
Phill W.
I have a UserControl containing, among other things, a TextBox.
The UserControl handles KeyDown/KeyPress Events for both itself
and the TextBox, as in
Private Sub TextField_KeyDown( _
ByVal sender As Object _
, ByVal e As System.Windows.Forms.KeyEventArgs _
) Handles MyBase.KeyDown, txtField.KeyDown
My problem is that I'd /also/ like the Outside World to be able to
receive these Events as well. Should it be as simple as calling
MyBase.OnKeyDown()
within the above Event Handler?
Or is that going to give me a nasty loop, with the UserControl
handling its own Event, over and over again?
TIA,
Phill W.