|
-
Mar 16th, 2002, 07:44 PM
#1
Thread Starter
Addicted Member
Keypress event
how do i detect what key is beeing pressed? it aint KeyAscii anymore like in VB6....
-
Mar 16th, 2002, 08:18 PM
#2
VB Code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles TextBox1.KeyPress
MessageBox.Show("You Pressed: " & e.KeyChar.ToString)
End Sub
-
Mar 16th, 2002, 08:32 PM
#3
Thread Starter
Addicted Member
thnx, exactly like i needed it!
-
Mar 18th, 2002, 04:12 AM
#4
Member
Combobox problem with keypress
Richard:
I've tried your method with the textbox, i've found out that the .handled thing is quite useful in telling whether the keys are supposed to be processed by the system or not, however, when i implement the same idea in the combobox, such as .handled = false or true it does nothing at all, is this a bug?
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
|