DekGenius.com
[ Team LiB ] Previous Section Next Section

IContainerControl

System.Windows.Forms (system.windows.forms.dll)interface

Any derived Control object can be made to contain other controls. In addition to setting the ControlStyles.ContainerControl, you should implement this interface to support the management and activation of child controls.

The current ActiveControl can be set or retrieved, and you should implement ActivateControl() to allow the framework to activate a particular child.

public interface IContainerControl {
// Public Instance Properties
   public Control ActiveControl{set; get; }
// Public Instance Methods
   public bool ActivateControl(Control active);
}

Implemented By

ContainerControl

Returned By

Control.GetContainerControl()

    [ Team LiB ] Previous Section Next Section