Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Shortcut keys

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2007
    Posts
    362

    Resolved [RESOLVED] [2005] Shortcut keys

    I have a panel apart from the menu strip on my MDI parent form which has several buttons like new, edit, delete, save , close etc... how can i assign shortcut keys to it ?

  2. #2
    Addicted Member
    Join Date
    Feb 2008
    Location
    California
    Posts
    151

    Re: [2005] Shortcut keys

    There is SendKeys.Send({shortcut key}) method.

    You can find more here.

    http://msdn2.microsoft.com/en-us/lib...keys.send.aspx

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

    Re: [2005] Shortcut keys

    First up, I'm not sure that a panel with Buttons is the appropriate option. Wouldn't a ToolStrip be a better option?

    That said, with Buttons you would normally include an ampersand in the Text and the following letter will be the access key, just like with menu items. You "click" the Button by pressing that letter's key along with the Alt 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