dotnetmonitor.com

 
Index
Previous
Next

 

ToolTips are intrinsically supported within ToolStrips. Below lists relevant properties and their affect on ToolTips.

ToolStrip.ShowItemToolTips

This is to enable ToolTips for the entire ToolStrip. Default is true for ToolStrip, ContextMenuStrip, false for MenuStrip, StatusStrip.

 

toolStrip.ShowItemToolTips = true

Text

By default ToolStripItems use the Text property as the textual source for the tooltip content. To alter this, set AutoToolTip to false.

AutoTooltip

AutoToolTip true directs the ToolStrip to use the Text property as the textual source for the tooltip content. AutoToolTip false directs the ToolStrip to use the ToolTipText property as the textual source for the tooltip content.

 

AutoToolTip is set to true for ToolStripButton, ToolStripDropDownButton, ToolStripSplitButton

 

NOTE: If (AutoToolTip) and (ToolTipText is empty) use the Text property to display as ToolTip(Text is stripped of ampersand characters which would represent mnemonics Text="&File" yields a toolTip of "File")

Painting
When should I use Paint/OnPaint and when should I override the ToolStripRenderer?
Do I need to worry about double buffering?
Parenting
Partial Trust
Usage