Results 1 to 2 of 2

Thread: Keyboard Input - Visual Basic

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    3

    Keyboard Input - Visual Basic

    Hi,

    I want to use Keyboard Input in Visual Basic, to perform operations such as rotate a cube, I want to use the key "R" on the keyboard to do that.

    Can anybody help?

    Thanks

    Bhaji

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Location
    New Zealand
    Posts
    111

    Re: Keyboard Input - Visual Basic

    its been a while since i used vb but i think this will work:

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    If KeyCode = vbKeyR Then
    do_somthing
    End If

    End Sub

Similar Threads

  1. Keyboard Input
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-26-2003, 02:01 PM
  2. VB - Keyboard Input
    By Bhaji123Go in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-08-2002, 02:34 PM
  3. Using Keyboard input?
    By GarlicGL in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-07-2001, 08:19 AM
  4. keyboard input
    By Vlasko in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-21-2001, 05:34 AM
  5. get keyboard input
    By vgm2 in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-14-2001, 02:18 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
  •  
Proudly hosted by Digital Ocean