"Teis Draiby" <teisREMOVE-THIS@draiby.com> schrieb:
>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!

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Teis Draiby - 20 Dec 2004 23:23 GMT
It goes like this:
protected override bool ProcessCmdKey(Message msg, Keys keyData)
{
MessageBox.Show(keyData.ToString());
return true;
}
regards, Teis
Herfried K. Wagner [MVP] - 20 Dec 2004 23:28 GMT
"Teis Draiby" <teisREMOVE-THIS@draiby.com> schrieb:
> protected override bool ProcessCmdKey(Message msg, Keys keyData)
Add 'ref' in front of 'Message msg'.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Teis Draiby - 21 Dec 2004 06:38 GMT
: )
- That's why I love the internet
Thank you very much, Teis
> Add 'ref' in front of 'Message msg'.
> M S Herfried K. Wagner