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. Tooltips in the Menu

Tooltips in the Menu

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

    I have the menu similar to the IE Favorites and want to display Tooltips with the url when selecting the menuItem ToolTip class is not capable to do that Can anybody gimme a hand Writing on C# in the VS2003

    D 1 Reply Last reply
    0
    • T TheDen

      I have the menu similar to the IE Favorites and want to display Tooltips with the url when selecting the menuItem ToolTip class is not capable to do that Can anybody gimme a hand Writing on C# in the VS2003

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

      IE Favorites is not a menu, it's a ListView. In order to get something like that to work, you'll have to handle the MouseMove event of the ListView to keep track of the mouse coordinates on your control, handle the MouseHover event of the ListView and use the tracked coordinates in the ListViews' GetItemAt()[^] method to determine which item your hoverng over, then set the Toolip up with the text you need. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        IE Favorites is not a menu, it's a ListView. In order to get something like that to work, you'll have to handle the MouseMove event of the ListView to keep track of the mouse coordinates on your control, handle the MouseHover event of the ListView and use the tracked coordinates in the ListViews' GetItemAt()[^] method to determine which item your hoverng over, then set the Toolip up with the text you need. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        T Offline
        T Offline
        TheDen
        wrote on last edited by
        #3

        But look I've got the menu where different links shown for each user like Bob -> LInk 1 LInk 2 Charlie - > LInk3 Link4 All this is done by the menu And to provide a simple Tooltips on this menu I should refactor all the code done, Like conver sub-menus to list-views and display them in the proper pos is it the easiest way???

        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