Results 1 to 2 of 2

Thread: KeyAscii Value in VB.net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2002
    Location
    Mumbai
    Posts
    31

    Angry KeyAscii Value in VB.net

    How do I find the KeyAscii Value when i press ENTER or Any Key from the keyboard in the TextBox Control .

    Help Help !!

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    simply put this in the keypress event of a textbox , then you will get the ascii code for the pressed key
    VB Code:
    1. MsgBox(Asc(e.KeyChar()))

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