<p>I've got a menu that contains, among other things, some most-recently-used file paths.  The paths to these files can be long, so the text sometimes gets clipped like "C:\Progra...\foo.txt"</p>

<p>I'd like to pop a tooltip with the full path when the user hovers over the item, but this doesn't seem possible with the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.aspx" rel="noreferrer">Tooltip</a> class in .NET 2.0.</p>

<p>Am I missing something obvious?</p>

[{'answer_id': 58251, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': -1, 'selected': False, 'text': '<p>Maybe you forgot to associate the tooltip with the control using <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.settooltip.aspx" rel="nofollow noreferrer">SetToolTip</a>.</p>\n'}, {'answer_id': 58253, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 1, 'selected': False, 'text': '<p>May be that I misunderstood you problem, but why do you need to use the <code>Tooltip</code> class? You can assign your text to the <a href="http://msdn.microsoft.com/en-us/library/aa978609%28VS.71%29.aspx" rel="nofollow noreferrer">ToolTipText</a> property and it will be shown to the user.</p>\n'}, {'answer_id': 58257, 'author': 'Adrian Clark', 'author_id': 148, 'author_profile': 'https://Stackoverflow.com/users/148', 'pm_score': 6, 'selected': True, 'text': '<p>If you are creating your menu items using the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.menuitem.aspx" rel="noreferrer" title="MenuItem Members">System.Windows.Forms.MenuItem</a> class you won\'t have a "ToolTipText" property.</p>\n\n<p>You should use the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.toolstripmenuitem.aspx" rel="noreferrer" title="ToolStripMenuItem class">System.Windows.Forms.ToolStripMenuItem</a> class which is new as of .Net Framework 2.0 and DOES include the "ToolTipText" property.</p>\n\n<p>You also have to remember to specify ShowItemToolTips = True on the MenuStrip control</p>\n'}, {'answer_id': 58258, 'author': 'andynil', 'author_id': 446, 'author_profile': 'https://Stackoverflow.com/users/446', 'pm_score': 1, 'selected': False, 'text': '<p>Tooltip is set manually by:</p>\n\n<pre><code>testToolStripMenuItem2.ToolTipText = "My tooltip text";\n</code></pre>\n\n<p>The MenuItem can for example be part of this menu constellation: a menu strip with a menu item and a sub menu item. (This plumbing code is generated automatically for you in the code behind designer file if you use visual studio)</p>\n\n<pre><code>MenuStrip menuStrip1;    \nToolStripMenuItem testToolStripMenuItem; // Menu item on menu bar\nmenuStrip1.Items.Add(testToolStripMenuItem);\n\nToolStripMenuItem testToolStripMenuItem2; // Sub menu item\ntestToolStripMenuItem.DropDownItems.Add(testToolStripMenuItem2)\n</code></pre>\n'}, {'answer_id': 14793447, 'author': 'RenniePet', 'author_id': 253938, 'author_profile': 'https://Stackoverflow.com/users/253938', 'pm_score': 0, 'selected': False, 'text': '<p>There is an article on CodeProject that implements a derived version of ToolStrip with custom tool tip support. This could be useful in situations where the default tool tip support is not flexible enough. \n<a href="http://www.codeproject.com/Tips/376643/ToolStrip-with-custom-ToolTip" rel="nofollow">http://www.codeproject.com/Tips/376643/ToolStrip-with-custom-ToolTip</a></p>\n'}, {'answer_id': 24709176, 'author': 'Thunder', 'author_id': 232687, 'author_profile': 'https://Stackoverflow.com/users/232687', 'pm_score': 2, 'selected': False, 'text': '<p>On the MenusTrip set "ShowItemToolTips = True" and on the ToolStripMenuItem set your ToolTipText</p>\n\n<pre><code>yourMenuStrip.ShowItemToolTips = true;\nyourToolStripMenuItem.ToolTipText = "some txt";\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/58245', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2773/']