Add images to menus & make short cut keys to menus (C#)

Last post I show how create the menu and how separate them.

This post I will show you how add image icon to the menus and how make a short cut key for them.
  1. Click on menu item and goto Propeties -> ShortcutKeys
  2. Select the ShortcutKeys to shortcut
  3. Add ShortcutKey for all submenu items as follows
    • New - Ctrl+N
    • Open - Ctrl+O
    • Save - Ctrl+S
    • Undo - Ctrl+Z
    • Redo - Ctrl+D
    • Cut - Ctrl+X
    • Copy - Ctrl+C
    • Paste - Ctrl+V
    • Select All - Ctrl+A
  4. Now let's see how add icon to the menus.
  5. Select the submenu item and goto Propeties -> Image
  6. Click import and choose the image icon
  7. Then select the image and click OK
  8. Add icon to the all menu items
Using following link you can download icons I used hear.

Icon

Using this link you can search any icon and download them

IconAchive

Next post I will show how make events to menu.

No comments:

Post a Comment