protected override void OnKeyUp(KeyEventArgs e)<br /> {<br /> base.OnKeyUp(e);<br /> }<br />
int x = 0;<br /> protected override bool ProcessDialogKey(Keys keyData)<br /> {<br /> if (keyData.ToString().Contains("Alt") == true && x == 0)<br /> x += 1;<br /> else<br /> x = 2;<br /> return base.ProcessDialogKey(keyData);<br /> }<br />
myForm.KeyPreview = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)