Dear Friend,
i need to trap the PrintScreen Button.so if i have press print screen i need to call some function.so please show me some example how to trap the print screen
Printable View
Dear Friend,
i need to trap the PrintScreen Button.so if i have press print screen i need to call some function.so please show me some example how to trap the print screen
dear freind,
i got from here what i need
http://www.vbforums.com/showthread.p...int+screen+key
The below code not working for printscreen alone, what might be the problem??
if i change e.keycode=keys.R,its working fine.
vb Code:
Private Sub TextBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown If e.KeyCode = Keys.PrintScreen Then MessageBox.Show("hi") End If End Sub
sorry in keyUp event its working
vb Code:
Private Sub TextBox1_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyUp If e.KeyCode = Keys.PrintScreen Then MessageBox.Show("hi") End If End Sub