System.Windows.Forms.Control.Name Property

Gets or sets the name of the control.

Syntax

[System.ComponentModel.Browsable(false)]
public string Name { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.Name property can be used at run time to evaluate the object by name rather than type and programmatic name. Because the Control.Name property returns a string type, it can be evaluated in case-style logic statements (Select statement in vbprvb, switch statement in csprcs and vcprvc).

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0