Results 1 to 7 of 7

Thread: Keypress & Keydown Event Handling

Threaded View

  1. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Isn't this helpful. . .
    VB Code:
    1. Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
    2.         If Asc(e.KeyChar()) = 13 Then
    3.  
    4.             'Do something
    5. e.Handled = False
    6.  
    7.         End If
    8.     End Sub
    Last edited by Pirate; Jul 19th, 2003 at 12:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width