How do I know which control has focus?
I need to add some key listening and mouse clicking to certain controls, which I designed myself. I have added Click event handlers and KeyDown handlers, but whenever I click on the controls, the Click event does not happen, neither the keyDown (I added a MessageBox.Show to see if the click event happened and it does not show) . I have tried to use the Focus() method but it doesn't see to be enougl, even though it returns true to some components when called.
Is there I way I can know exactly which control has the focus, so I can add the key handling code to that control?
Thanks
Jorchi
[607 byte] By [
al912912] at [2007-12-16]