Results 1 to 2 of 2

Thread: Keypress event

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    5

    Keypress event

    Hi,

    I have this:

    AddHandler TextBox1.KeyPress, AddressOf keypressed

    ...
    ...

    Sub keypressed(ByVal o As [Object], ByVal e As KeyPressEventArgs)
    If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then
    Me.SelectNextControl(o, False, True, False, True)
    e.Handled = True
    End If

    End Sub 'keypressed
    ...
    ...
    ...But, I can catch event like key down, key up, etc ????

    thanks
    jevr.,-

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You can catch these events (that doesn't have ascii representation) in either KeyUp or KeyDown events .

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