System.Windows.Forms.PopupEventArgs.AssociatedControl Property

Gets the control for which the System.Windows.Forms.ToolTip is being drawn.

Syntax

public Control AssociatedControl { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Because you can associate the System.Windows.Forms.ToolTip with multiple controls through the ToolTip.SetToolTip(Control, string) method, you can use the PopupEventArgs.AssociatedControl property to determine which control the ToolTip.Draw event is associated with. This is helpful if you want to perform different ToolTip customization based on the associated control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0