Can't overrode ProcessCmdKey in clontrol

  • Thread starter Thread starter Teis Draiby
  • Start date Start date
T

Teis Draiby

I want to catch key shortcuts in a control by using ProcessCmdKey (using
C#), but i get a compiler error: "no suitable method found to override".
What am I doing wrong.
Is it because I'm using .NET Framework 1.0??

Any answer is very much appreciated,
regards Teis
 
Teis Draiby said:
I want to catch key shortcuts in a control by using ProcessCmdKey (using
C#), but i get a compiler error: "no suitable method found to override".
What am I doing wrong.

Are you sure you used the right parameters? Post your code!
 
It goes like this:

protected override bool ProcessCmdKey(Message msg, Keys keyData)
{
MessageBox.Show(keyData.ToString());
return true;
}


regards, Teis
 
Back
Top