IContainerControl.ActivateControl Method

ContainerControl.IContainerControl.ActivateControl Method (Control)

 

Activates the specified control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

private abstract ActivateControl : 
        control:Control -> bool
private override ActivateControl : 
        control:Control -> bool

Parameters

control
Type: System.Windows.Forms.Control

The Control to activate.

Return Value

Type: System.Boolean

true if the control is successfully activated; otherwise, false.

The control parameter must be a child of the container control.

The following code example demonstrates how to inherit from the ScrollableControl class and implement the IContainerControl interface. Implementation is added to the ActiveControl property and the ActivateControl method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft