Results 1 to 2 of 2

Thread: file menu or menu strip

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    file menu or menu strip

    how can i set the short cut keys in file menu or menu strip?
    in vb6 there is menu editor.

    tnx

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

    Re: file menu or menu strip

    Menu items have access keys and shortcut keys. Access keys are the characters that get underlined in the text of the control and activate the menu item by pressing that character key in combination with the Alt key. I'm guessing that that's not what you are talking about.

    Shortcut keys are something similar but not the same. A menu item has a ShortcutKeys property that you can set like any other property in the Properties window. Add your MenuStrip or ContextMenuStrip to your form, enter the Text for the menu item(s), then set the ShortcutKeys property in the Properties window.
    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