I wrote a lister plugin using C#, implemented some keydown event for the UserControl, or other controls inside the UserControl. How can I make the lister window reponse to these shortcuts?
With the following code snippet in UserControl, I created a standalone WinForm, contained the UserControl, and it works. But not inside the lister.
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.I)
{
// do something here
}
return base.ProcessCmdKey(ref msg, keyData);
}
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote a lister plugin using C#, implemented some keydown event for the UserControl, or other controls inside the UserControl. How can I make the lister window reponse to these shortcuts?
With the following code snippet in UserControl, I created a standalone WinForm, contained the UserControl, and it works. But not inside the lister.
Thanks.
Maybe I missed something. I have set "FocusedControl = myControl".
But sometimes, the KeyDown event of a subcontrol of "myControl" doesn't reponse, but “ESC” works.
Sometimes, KeyDown event responses, but ESC doesn't work.
And it's not like I can choose to work one aspect or another, it's more like one aspect accidently works, and I cannot figure out why.
Would you please help me out?
Thanks.
Last edit: WANG Aiyong 2018-03-08
This can be closed. Sorry for interruption. Wonderful library, thanks.