|
-
Jan 27th, 2004, 09:11 PM
#1
Thread Starter
Lively Member
[Resolved] keyboard sensitivity
halu,
i'm kinda new to this VB.NET thing and i want to know something about keyboard sensitivity. let's say pressing Ctrl Alt Shift ESC with close the program... i know something about the form_keydown but correct me if i'm wrong, it only handles one key event... like ESC closes the form.
thanx in advance and best regards,
member,
ayan
Last edited by ayan; Jan 28th, 2004 at 08:00 PM.
-
Jan 28th, 2004, 03:23 AM
#2
Does this do what you want?
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.KeyPreview = True
End Sub
Private Sub Form1_KeyDown(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) _
Handles MyBase.KeyDown
If e.Alt AndAlso e.Control AndAlso _
e.Shift AndAlso e.KeyCode = Keys.Escape Then
MsgBox("Close Program")
End If
End Sub
This world is not my home. I'm just passing through.
-
Jan 28th, 2004, 04:31 AM
#3
Thread Starter
Lively Member
halu,
YEZZZZ, it rings my bell... hehehe... thanx man. i learn something new....
thanx times ten to the power of forever...
--ayan
writing hello world is fine but developing a large project needs a forum like this.
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
|