|
-
Apr 4th, 2008, 01:54 AM
#1
Thread Starter
Fanatic Member
Trap printscreen key
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
-
Apr 4th, 2008, 02:19 AM
#2
Thread Starter
Fanatic Member
-
Apr 4th, 2008, 02:24 AM
#3
Fanatic Member
Re: Trap printscreen 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
Visual Studio.net 2010
If this post is useful, rate it

-
Apr 4th, 2008, 02:28 AM
#4
Fanatic Member
Re: Trap printscreen key
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
Visual Studio.net 2010
If this post is useful, rate it

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|