System.Windows.Forms.DrawToolTipEventArgs.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 the System.Windows.Forms.ToolTip can be associated with multiple controls through the ToolTip.SetToolTip(Control, string) method, the DrawToolTipEventArgs.AssociatedControl property can be used 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