11 instantiations of ToolTip
PresentationUI (1)
MS\Internal\Documents\DialogBaseForm.cs (1)
31_toolTip = new ToolTip
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
109_textToolTip ??= new ToolTip();
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2961new ToolTip
System\Windows\Forms\Controls\DataGridView\DataGridView.ToolTip.cs (1)
31ToolTip ??= new ToolTip
System\Windows\Forms\Controls\Labels\Label.cs (1)
148_textToolTip ??= new ToolTip();
System\Windows\Forms\Controls\ListView\ListView.cs (1)
592internal ToolTip KeyboardToolTip { get; } = new();
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
29private readonly ToolTip _internalToolTip = new();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1673toolTip = Properties.AddValue(s_propToolTip, new ToolTip());
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
821internal ToolTip KeyboardToolTip { get; } = new();
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
60_toolTip = new ToolTip();
System\Windows\Forms\Design\InheritanceUI.cs (1)
49_toolTip ??= new ToolTip
129 references to ToolTip
PresentationUI (1)
MS\Internal\Documents\DialogBaseForm.cs (1)
184protected ToolTip _toolTip;
System.Windows.Forms (116)
System\Windows\Forms\Control.cs (9)
2774internal virtual void RemoveToolTip(ToolTip toolTip) 5315private protected virtual string? GetCaptionForTool(ToolTip toolTip) => 10369internal virtual void SetToolTip(ToolTip toolTip) 12841void IKeyboardToolTip.OnHooked(ToolTip toolTip) => OnKeyboardToolTipHook(toolTip); 12843void IKeyboardToolTip.OnUnhooked(ToolTip toolTip) => OnKeyboardToolTipUnhook(toolTip); 12845string? IKeyboardToolTip.GetCaptionForTool(ToolTip toolTip) => GetCaptionForTool(toolTip); 12886internal virtual void OnKeyboardToolTipHook(ToolTip toolTip) 12890internal virtual void OnKeyboardToolTipUnhook(ToolTip toolTip) 12934internal virtual ToolInfoWrapper<Control> GetToolInfoWrapper(TOOLTIP_FLAGS flags, string? caption, ToolTip tooltip)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
40private ToolTip? _textToolTip;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2953internal ToolTip KeyboardToolTip 2957if (!Properties.TryGetValue(s_propToolTip, out ToolTip? toolTip))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
3273internal bool CancelToolTipPopup(ToolTip toolTip) 5577if (Properties.TryGetValue(s_propToolTip, out ToolTip? keyboardToolTip))
System\Windows\Forms\Controls\DataGridView\DataGridView.ToolTip.cs (1)
19public ToolTip? ToolTip { get; private set; }
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
287/// <see cref="ToolTip.GetOptimalToolTipPosition"/> method. The optimal tooltip position is the position 333void IKeyboardToolTip.OnHooked(ToolTip toolTip) => OnKeyboardToolTipHook(toolTip); 335internal virtual void OnKeyboardToolTipHook(ToolTip toolTip) { } 337void IKeyboardToolTip.OnUnhooked(ToolTip toolTip) => OnKeyboardToolTipUnhook(toolTip); 339internal virtual void OnKeyboardToolTipUnhook(ToolTip toolTip) { } 341string? IKeyboardToolTip.GetCaptionForTool(ToolTip toolTip)
System\Windows\Forms\Controls\Labels\Label.cs (2)
52private ToolTip? _textToolTip; 1406internal override void SetToolTip(ToolTip toolTip)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
592internal ToolTip KeyboardToolTip { get; } = new(); 3514internal override unsafe ToolInfoWrapper<Control> GetToolInfoWrapper(TOOLTIP_FLAGS flags, string? caption, ToolTip tooltip) 5412internal override void SetToolTip(ToolTip toolTip)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (5)
18string IKeyboardToolTip.GetCaptionForTool(ToolTip toolTip) => ToolTipText; 72void IKeyboardToolTip.OnHooked(ToolTip toolTip) => OnKeyboardToolTipHook(toolTip); 74void IKeyboardToolTip.OnUnhooked(ToolTip toolTip) => OnKeyboardToolTipUnhook(toolTip); 78internal virtual void OnKeyboardToolTipHook(ToolTip toolTip) { } 80internal virtual void OnKeyboardToolTipUnhook(ToolTip toolTip) { }
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1640internal override void SetToolTip(ToolTip toolTip)
System\Windows\Forms\Controls\TabControl\TabPage.cs (6)
27private List<ToolTip>? _associatedToolTips; 28private ToolTip? _externalToolTip; 29private readonly ToolTip _internalToolTip = new(); 152private protected override string? GetCaptionForTool(ToolTip toolTip) 656internal override void RemoveToolTip(ToolTip toolTip) 693internal override void SetToolTip(ToolTip toolTip)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
1616ToolTip internalToolTip = ToolTip; 1667internal ToolTip ToolTip 1671if (!Properties.TryGetValue(s_propToolTip, out ToolTip? toolTip)) 1896if (Properties.TryGetValue(s_propToolTip, out ToolTip? toolTip))
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
873internal override void OnKeyboardToolTipHook(ToolTip toolTip) 880internal override void OnKeyboardToolTipUnhook(ToolTip toolTip)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
21private ToolTip? _hookedKeyboardTooltip; 740internal override void OnKeyboardToolTipHook(ToolTip toolTip) 750internal override void OnKeyboardToolTipUnhook(ToolTip toolTip)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (5)
3602void IKeyboardToolTip.OnHooked(ToolTip toolTip) => OnKeyboardToolTipHook(toolTip); 3604void IKeyboardToolTip.OnUnhooked(ToolTip toolTip) => OnKeyboardToolTipUnhook(toolTip); 3606string? IKeyboardToolTip.GetCaptionForTool(ToolTip toolTip) => ToolTipText; 3614internal virtual void OnKeyboardToolTipHook(ToolTip toolTip) 3618internal virtual void OnKeyboardToolTipUnhook(ToolTip toolTip)
System\Windows\Forms\Controls\TreeView\TreeNode.IKeyboardToolTip.cs (5)
16string IKeyboardToolTip.GetCaptionForTool(ToolTip toolTip) => ToolTipText; 47void IKeyboardToolTip.OnHooked(ToolTip toolTip) => OnKeyboardToolTipHook(toolTip); 49void IKeyboardToolTip.OnUnhooked(ToolTip toolTip) => OnKeyboardToolTipUnhook(toolTip); 55internal virtual void OnKeyboardToolTipHook(ToolTip toolTip) { } 57internal virtual void OnKeyboardToolTipUnhook(ToolTip toolTip) { }
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
821internal ToolTip KeyboardToolTip { get; } = new(); 1615internal override void SetToolTip(ToolTip toolTip) 2887internal override unsafe ToolInfoWrapper<Control> GetToolInfoWrapper(TOOLTIP_FLAGS flags, string? caption, ToolTip tooltip)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
974internal override void SetToolTip(ToolTip toolTip) 986internal override void RemoveToolTip(ToolTip toolTip)
System\Windows\Forms\ToolTip\IKeyboardToolTip.cs (3)
51void OnHooked(ToolTip toolTip); 56void OnUnhooked(ToolTip toolTip); 61string? GetCaptionForTool(ToolTip toolTip);
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (17)
7/// Implements keyboard ToolTips for controls with a <see cref="ToolTip"/> set on them. 55private SmState Transition(IKeyboardToolTip tool, ToolTip tooltip, SmEvent @event) 80public void ResetStateMachine(ToolTip toolTip) 85public void Hook(IKeyboardToolTip tool, ToolTip toolTip) 131public void Unhook(IKeyboardToolTip tool, ToolTip toolTip) 140public void NotifyAboutFormDeactivation(ToolTip sender) 158private SmState HideAndStartWaitingForRefocus(IKeyboardToolTip tool, ToolTip toolTip) 184private SmState SetupReshowTimer(IKeyboardToolTip tool, ToolTip toolTip) 193private SmState ShowToolTip(IKeyboardToolTip tool, ToolTip toolTip) 221private SmState SetupInitShowTimer(IKeyboardToolTip tool, ToolTip toolTip) 255ToolTip? toolTip = _toolToTip[source]; 288ToolTip? currentToolTip = _toolToTip[_currentTool]; 303ToolTip? currentToolTip = _toolToTip[_currentTool]; 318private void Reset(ToolTip? toolTipToReset) 328private void StartTracking(IKeyboardToolTip tool, ToolTip toolTip) 333private void StopTracking(IKeyboardToolTip tool, ToolTip toolTip) 338private void OnFormDeactivation(ToolTip sender)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.ToolToTipDictionary.cs (9)
12private readonly ConditionalWeakTable<IKeyboardToolTip, WeakReference<ToolTip?>> _table = []; 14public ToolTip? this[IKeyboardToolTip tool] 18ToolTip? toolTip = null; 19if (_table.TryGetValue(tool, out WeakReference<ToolTip?>? toolTipReference)) 32if (_table.TryGetValue(tool, out WeakReference<ToolTip?>? toolTipReference)) 38_table.Add(tool, new WeakReference<ToolTip?>(value)); 43public void Remove(IKeyboardToolTip tool, ToolTip toolTip) 45if (_table.TryGetValue(tool, out WeakReference<ToolTip?>? toolTipReference)) 47if (toolTipReference.TryGetTarget(out ToolTip? existingToolTip))
System\Windows\Forms\ToolTip\ToolTip.cs (23)
13[ProvideProperty(nameof(ToolTip), typeof(Control))] 74/// Initializes a new instance of the <see cref="ToolTip"/> class, given the container. 87/// Initializes a new instance of the <see cref="ToolTip"/> class in its default state. 101/// Gets or sets a value indicating whether the <see cref="ToolTip"/> control is currently active. 133/// Gets or sets the time (in milliseconds) that passes before the <see cref="ToolTip"/> appears. 155/// Gets or sets the initial delay for the <see cref="ToolTip"/> control. 171/// Gets or sets the BackColor for the <see cref="ToolTip"/> control. 235/// Gets or sets the ForeColor for the <see cref="ToolTip"/> control. 280/// Gets or sets the IsBalloon for the <see cref="ToolTip"/> control. 326/// Gets or sets the initial delay for the <see cref="ToolTip"/> control. 367/// Gets or sets a value indicating whether the <see cref="ToolTip"/> appears even when its 920/// Disposes of the <see cref="ToolTip"/> component. 1006/// Retrieves the <see cref="ToolTip"/> text associated with the specified control. 1143/// Removes all of the tooltips currently associated with the <see cref="ToolTip"/> control. 1203/// Associates <see cref="ToolTip"/> text with the specified control. 1212/// Associates <see cref="ToolTip"/> text with the specified information 1373/// Associates <see cref="ToolTip"/> with the specified control and displays it. 1385/// Associates <see cref="ToolTip"/> with the specified control and displays it for the 1400/// Associates <see cref="ToolTip"/> with the specified control and displays it. 1419/// Associates <see cref="ToolTip"/> with the specified control and displays it. 1439/// Associates <see cref="ToolTip"/> with the specified control and displays it. 1456/// Associates <see cref="ToolTip"/> with the specified control and displays it. 1718/// Hides <see cref="ToolTip"/> with the specified control.
System\Windows\Forms\ToolTip\ToolTip.ToolTipNativeWindow.cs (2)
10private readonly ToolTip _toolTip; 12internal ToolTipNativeWindow(ToolTip toolTip)
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
51protected override void OnPropertyTaskItemUpdated(ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
39private readonly ToolTip _toolTip;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
223protected override void OnPropertyTaskItemUpdated(ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.Line.cs (1)
60internal abstract void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex);
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
84internal override void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
109internal override void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
33protected abstract void OnPropertyTaskItemUpdated(ToolTip toolTip, ref int currentTabIndex); 93internal sealed override void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
32internal override void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
125protected override void OnPropertyTaskItemUpdated(ToolTip toolTip, ref int currentTabIndex)
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
63internal override void UpdateActionItem(LineInfo lineInfo, ToolTip toolTip, ref int currentTabIndex)
System\Windows\Forms\Design\InheritanceUI.cs (1)
16private ToolTip? _toolTip;