dotnetmonitor.com |
|
||||||||||||
ToolTips are intrinsically supported within ToolStrips.
Below lists relevant properties and their affect on ToolTips.
ToolStrip.ShowItemToolTipsThis is to enable ToolTips for the entire ToolStrip. Default is true for ToolStrip, ContextMenuStrip, false for MenuStrip, StatusStrip.
toolStrip.ShowItemToolTips = true TextBy default ToolStripItems use the Text property as the textual source for the tooltip content. To alter this, set AutoToolTip to false. AutoTooltipAutoToolTip 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") |
||||||||||||
|
||||||||||||