Click here to Skip to main content
11,496,146 members (1,756 online)
Click here to Skip to main content

ToolStrip with Custom ToolTip

, 1 May 2012 CPOL 16.2K 986 2
Custom WinForm ToolStrip that fixes some of the ToolTip related problems and adds few related features
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.


Stock .NET ToolStrip control has several annoying bugs considering its tooltip:

  • Tooltip is not hidden on click - click is behavior that indicates that user has understood what item is about, so user expects tooltip to be hidden, and the second problem is that click might result in change of tooltip text, so shown tooltip might become irrelevant.
  • Tooltip doesn't care if dropdown is shown - it looks very ugly if item's dropdown is shown over its tooltip, or tooltip over its dropdown.

Also, several tooltip related features are added.

Using the Code

Using ToolStripToolTip is as simple as:

ToolStipToolTip toolStrip1 = new ToolStripToolTip();

Also, you may want to use some of the following properties or objects:

  • Tooltip - I have decided to make Tooltip exposed, as you might sometimes want to hide it on some custom event.
  • ToolTipInterval - integer for interval in ms in which tooltip stays visible. By default, it is 4000.
  • ToolTipText - string for text for tooltip that will be shown for ToolStrip (when mouse is over it, but not over any particular item).
  • ToolTipShowUp - if True, tooltip is shown above the pointer, which is useful if ToolStrip is docked to bottom of Form. By default it is false.


  • 2012/05/01 - First version


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ivan Ičin
Serbia Serbia
I am creating file manager, I want to make it the best available file manager for average users.
Follow on   Twitter

Comments and Discussions

SuggestionAutomatic ShowUp Pin
Sylvain Jérôme4-Jul-13 4:35
memberSylvain Jérôme4-Jul-13 4:35 
GeneralRe: Automatic ShowUp Pin
ivanicin4-Jul-13 6:01
memberivanicin4-Jul-13 6:01 
GeneralRe: Automatic ShowUp Pin
ivanicin4-Jul-13 6:17
memberivanicin4-Jul-13 6:17 
GeneralRe: Automatic ShowUp Pin
dherrmann15-Nov-13 2:14
memberdherrmann15-Nov-13 2:14 
GeneralRe: Automatic ShowUp Pin
Ivan Ičin10-Dec-13 2:11
memberIvan Ičin10-Dec-13 2:11 
QuestionWhy no download button? Pin
RenniePet9-Feb-13 11:44
memberRenniePet9-Feb-13 11:44 
AnswerRe: Why no download button? Pin
ivanicin9-Feb-13 12:07
memberivanicin9-Feb-13 12:07 
This is the first and only article I have published here, so possibly I did something wrong, but I have no idea what - my guess is because it is posted as tip...

You should be able to download it here:[^]

However, I am unsure why download button is missing...
GeneralThank you Pin
RenniePet9-Feb-13 17:23
memberRenniePet9-Feb-13 17:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 1 May 2012
Article Copyright 2012 by Ivan Ičin
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid