System.Windows.Forms.ContextMenuStrip.SourceControl Property

Gets the last control that caused this System.Windows.Forms.ContextMenuStrip to be displayed.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public Control SourceControl { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Common uses of the ContextMenuStrip.SourceControl property include the following:

Requirements

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