Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Creating toolbar from menu

Creating toolbar from menu

Scheduled Pinned Locked Moved C#
csharpwinformstutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AndrusM
    wrote on last edited by
    #1

    WinForms MDI parent form menu system (MenuStrip and ToolStripMenuItem's) created in designer. ToolStripMenuItems items have text, image properties and onclick event set. At application startup, toolbar should created automatically from specified menu items. Users can select the menu items which are available in toolbar. Anu idea how to implement such toolbar ?

    Andrus

    M 1 Reply Last reply
    0
    • A AndrusM

      WinForms MDI parent form menu system (MenuStrip and ToolStripMenuItem's) created in designer. ToolStripMenuItems items have text, image properties and onclick event set. At application startup, toolbar should created automatically from specified menu items. Users can select the menu items which are available in toolbar. Anu idea how to implement such toolbar ?

      Andrus

      M Offline
      M Offline
      Mbah Dhaim
      wrote on last edited by
      #2

      you must create that toolbars at runtime with different tag for each item, but have some single onclick event, than you can manage that known tag to execute another handler, for detailed information search how to create controls at runtime. hope it helps :-\

      dhaim programming is a hobby that make some money as side effect :)

      A 1 Reply Last reply
      0
      • M Mbah Dhaim

        you must create that toolbars at runtime with different tag for each item, but have some single onclick event, than you can manage that known tag to execute another handler, for detailed information search how to create controls at runtime. hope it helps :-\

        dhaim programming is a hobby that make some money as side effect :)

        A Offline
        A Offline
        AndrusM
        wrote on last edited by
        #3

        Where to find example for this ? Every menu item Tag property contains unique name. List of selected toolbar buttons should be stored in user settings or in isolated storage. Probably in form load some code should create this toolbar by retrieving text from menu and setting button onclick method to execute PerformClick for forresponding menu item.

        Andrus

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups