CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to get then scan code value of key ?

    Hi all !

    I want to know if its possible to get the scan code value when a key is press on the keyboard in visual basic. The KeyDown or KeyPress message doesn't provide the information is there another way ? I know the OnKeyDown Message in win32 using VC++ provide such information but where can i find it in VB ??

    Thanx
    Charles


  2. #2
    Join Date
    Feb 2000
    Posts
    137

    Re: How to get then scan code value of key ?

    The first parameter (KeyCode) of the KeyDown and KeyUp events is the scan code of the key that was pressed (not to be confused with the ASCII value of the key returned by the KeyPress event). The second parameter "shift" is used to determine the state of the shift key when the KeyUp or KeyDown event fired.


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

Featured