Gets or sets the active control on the container control.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property ActiveControl As System.Windows.Forms.Control |
| C# | |
|---|
public System.Windows.Forms.Control ActiveControl {get; set;} |
Property Value
The
System.Windows.Forms.Control that is currently active on the
System.Windows.Forms.ContainerControl.
Exceptions
| Exception | Description |
| System.ArgumentException | The System.Windows.Forms.Control assigned could not be activated. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also