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