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

    Keyboard commands

    How do you program something to respond to a keyboard command in a function?


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: Keyboard commands

    each control usually has a key_press, key_up, and key_down event that will allow you to place code in the sub that is called when the event happens

    use the drop down combo boxes above the code window to find them

    Then code what you want to happen

    You have to think backward as to how you want to code - you are not waiting for a key press inside a sub - you are waiting for one outside and your codes STARTS on the event


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