Michael,
Try adding the following code to the desired form...
protected override void OnKeyUp(KeyEventArgs e)
{
if (e.KeyCode == Keys.PrintScreen)
{
System.Diagnostics.Debug.WriteLine(
string.Format("PrintScreen key released at {0}.",
DateTime.Now));
// This next statement is optional. Include it to tell
// windows that you have taken all action that should be
// taken in response to this key press. If you want Windows
// to also perform its default handling, then do not include
// this next statement.
e.Handled = true;
}
base.OnKeyUp(e);
}
- Roger
|