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. Few menu extension (WinForms)

Few menu extension (WinForms)

Scheduled Pinned Locked Moved C#
csharpwinformsquestion
3 Posts 3 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.
  • T Offline
    T Offline
    TheDen
    wrote on last edited by
    #1

    Well in my project in need of following menu extensions a) make tooltips appear on mouse over the menu item b) how can i organize the menu in multi columns - currently in one contex menu have about 100 items, whant to organize them on two panels, link "All Programs" menu in Windows Regardless

    D C 2 Replies Last reply
    0
    • T TheDen

      Well in my project in need of following menu extensions a) make tooltips appear on mouse over the menu item b) how can i organize the menu in multi columns - currently in one contex menu have about 100 items, whant to organize them on two panels, link "All Programs" menu in Windows Regardless

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You'll have to ownerdraw the menu and draw the menus yourself. There are no properties to support columns in the menus. Tooltips, I don't know about. I don't think they're supported. I also don't remember seeing them in any application, at least, not in any normal application that doesn't ownerdraw everything. But, something to think about -> If I opened a menu and saw a hundred items in it, I'd click Close, then Add/Remove Programs, Uninstall. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      • T TheDen

        Well in my project in need of following menu extensions a) make tooltips appear on mouse over the menu item b) how can i organize the menu in multi columns - currently in one contex menu have about 100 items, whant to organize them on two panels, link "All Programs" menu in Windows Regardless

        C Offline
        C Offline
        Charlie Williams
        wrote on last edited by
        #3

        Set the BarBreak property of a MenuItem to true to start a new column in a context menu. For instance:

        //In a context menu with four MenuItems

        contextMenu1.MenuItems[2].BarBreak = true;

        //yields:

        | item1 | item3 |
        | item2 | item4 |

        Charlie if(!curlies){ return; }

        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