CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Posts
    6

    Keyboard Control

    For some reason i cannot get VB to recognise my direction arrows on the keyboard???
    anyone know the best way to do this?
    i have tryed most methods i know.


  2. #2
    Join Date
    Apr 2001
    Posts
    95

    Re: Keyboard Control

    In the control MouseDown or MouseUp event write something like the following... I think it should work.


    Select Case KeyCode
    Case vbKeyUp
    ' do something
    Case vbKeyDown
    ' do something
    Case vbKeyLeft
    ' do something
    Case vbKeyRight
    ' do something
    Case else
    ' do something
    End Select




    HTH


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