Results 1 to 2 of 2

Thread: [02/03] Get keyboard clicks

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2006
    Posts
    29

    Post [02/03] Get keyboard clicks

    I want my app to change the background picture of a form when i press the b button on my keyboard. How could this be done???



    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Get keyboard clicks

    Set the KeyPreview property of the form to True, handle its KeyDown or KeyPress event and test for the B key.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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