ContainerControl

ContainerControl marshal by reference, disposable

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

This control extends ScrollableControl and also implements the IContainerControl interface. It provides the base functionality required to manage the focus control and tab ordering for the controls that it hosts . It also adds support for a ParentForm member, which provides the root containing form for the control, and the ActiveControl (implementing the IContainerControl interface), which determines which of the hosted controls has the focus.

Note that the ContainerControl never takes the focus itself. It always passes it through to one of the contained controls.

You would not normally derive your own containers from this class. Instead, you should look at UserControl or Form .

 public class  ContainerControl  : ScrollableControl : IContainerControl {  // Public Constructors  public  ContainerControl  ();  // Public Instance Properties  public Control  ActiveControl  {set; get; }  // implements IContainerControl  public override BindingContext  BindingContext  {set; get; }  // overrides Control  public Form  ParentForm  {get; }  // Protected Instance Properties  protected override CreateParams  CreateParams  {get; }  // overrides ScrollableControl   // Public Instance Methods  public bool  Validate  ();  // Protected Instance Methods  protected override void  AdjustFormScrollbars  (bool  displayScrollbars  );  // overrides ScrollableControl  protected override void  Dispose  (bool  disposing  );  // overrides Control  protected override void  OnControlRemoved  (ControlEventArgs  e  );  // overrides Control  protected override void  OnCreateControl  ();  // overrides Control  protected override bool  ProcessDialogChar  (char  charCode  );  // overrides Control  protected override bool  ProcessDialogKey  (Keys  keyData  );  // overrides Control  protected override bool  ProcessMnemonic  (char  charCode  );  // overrides Control  protected virtual bool  ProcessTabKey  (bool  forward  );    protected override void  Select  (bool  directed  , bool  forward  );  // overrides Control  protected virtual void  UpdateDefaultButton  ();    protected override void  WndProc  (ref Message  m  );  // overrides ScrollableControl  } 

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) Control(IOleContro, IOleObject , IOleInPlaceObject , IOleInPlaceActiveObject , IOleWindow , IViewObject , IViewObject2 , IPersist , IPersistStreamInit , IPersistPropertyBag , IPersistStorage , IQuickActivate , System.ComponentModel.ISynchronizeInvoke , IWin32Window) ScrollableControl ContainerControl(IContainerControl)

Subclasses

Form , PropertyGrid , UpDownBase , UserControl

Returned By

AxHost.ContainingControl , ErrorProvider.ContainerControl

Passed To

AxHost.ContainingControl , ErrorProvider.{ContainerControl , ErrorProvider()}



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net