Results 1 to 4 of 4

Thread: Visual Basic Act On Key Pressed?

  1. #1
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Visual Basic Act On Key Pressed?

    In visual basic 2005, ive been looking for a way to have an action apon a key being pressed (like for games). What is an example of this code? Ive been looking EVERYWHERE!

    Basically,

    If up key is pressed then
    msgbox ("Up key pressed")
    endif

    something like that

    the form name is Form1 in case thats needed
    http://www.insanecombat.com << bored? check out ma game

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

  3. The Following User Says Thank You to Nile For This Useful Post:

    Demonicman (05-14-2008)

  4. #3
    Join Date
    Feb 2007
    Location
    Earth
    Posts
    133
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    yep thanks =D your my hero =P
    http://www.insanecombat.com << bored? check out ma game

  5. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Anytime.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •