File: winforms\Managed\System\WinForms\IContainerControl.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="IContainerControl.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
/*
 */
namespace System.Windows.Forms {
    using System.ComponentModel;
 
    using System.Diagnostics;
 
    using System;
 
    /// <include file='doc\IContainerControl.uex' path='docs/doc[@for="IContainerControl"]/*' />
    /// <devdoc>
    ///    <para> Provides functionality for a control 
    ///       to parent other controls.</para>
    /// </devdoc>
    public interface IContainerControl {
        /// <include file='doc\IContainerControl.uex' path='docs/doc[@for="IContainerControl.ActiveControl"]/*' />
        /// <devdoc>
        ///    <para>Indicates the control that is currently active on the container control.</para>
        /// </devdoc>
        Control ActiveControl { get; set; }
        /// <include file='doc\IContainerControl.uex' path='docs/doc[@for="IContainerControl.ActivateControl"]/*' />
        /// <devdoc>
        ///    <para>Activates the specified control.</para>
        /// </devdoc>
        bool ActivateControl(Control active);
    }
}