how to capture printscreen & alt-printscreen keystrokes

  • Thread starter Thread starter Segfahlt
  • Start date Start date
S

Segfahlt

Anybody got any idea how to do this?

They don't get handled with the regular keydown/keypressed events

thanks,

bill
 
Anybody got any idea how to do this?

They don't get handled with the regular keydown/keypressed events

thanks,

bill

See the help on msdn on
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemWindowsFormsKeysClassTopic.asp
The PRINT SCREEN key has a value of 44 .

you can use the Keys enumration class (for print screen it is
Keys.PrintScreen)

private void KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.PrintScreen)
{
// do something...
}
}


Hope this helps.

--
Adrian Mascarenhas, Developer Division

This posting is provided "AS IS" with no warranties, and confers no rights.

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Back
Top