UserControl events ; Enter , KeyDown, KeyPress & KeyUp

0
0

Greetings all …
I attempted KeyDown,  KeyPress  & KeyUp on a WiseJ UserControl
the goal here is capture the enter/return key anywhere on the control.

So of course there is a table layout panel on my usercontrol so perhaps I need to use its Key events.
so I additionally tried to use those to capture the key input and invoke a search method.
Results are inconsistant.
As if the key-up needed the keypress to be wired up in order to fire. Or something crazy like that but again
inconsistent.
I have all three hooked up ( all six ) if you count the methods on the usercontrol and the tblLayoutPanel,
and I can’t get any of them to fire consistently.

  • You must to post comments
0
0

All the key event work perfectly fine for us. If you have a test case that shows your issues we can probably help. The wiring need is part of the documented lazy event system. When running in a browser you don’t want all key and pointer events to fire all the times unless the control requested them.

  • Christian Programmer
    Yea thanks Luca I’ve seen the fun fun waltz of events being fired back to back after each character is entered or that kind of stuff thanks. I attempted just the KeyUp only on the main UserControl but then figured that since I wasn’t getting any degree of consistency that perhaps it was confused by the table layout panel sitting atop my whole user control so I wired up the tableLayOutPanels KeyUp instead with same results. Finally all six events as I mentioned three for the user control and three for the table layout panel, same inconsistent results. Sometimes she hits the event some times she doesn’t
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.