ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.5.2 Assembly / C1.Win.C1Command Namespace / C1DockingManager Class / Floating Event
Example

In This Topic
    Floating Event (C1DockingManager)
    In This Topic
    Notifies that a C1DockingTab or a C1DockingTabPage is changing state to floating. Can be canceled.
    Syntax
    'Declaration
     
    Public Event Floating As FloatingEventHandler
    public event FloatingEventHandler Floating
    Event Data

    The event handler receives an argument of type FloatingEventArgs containing data related to this event. The following FloatingEventArgs properties provide information specific to this event.

    PropertyDescription
    (Inherited from System.ComponentModel.CancelEventArgs)
    The floated C1DockingTab.  
    The floated C1DockingTabPage.  
    Gets or sets border style of the floating window.  
    Gets or sets a value indicating whether the Maximize button is displayed in the caption bar of the floating window.  
    Remarks
    By default, the System.Windows.Forms.Form.FormBorderStyle of the floating window is System.Windows.Forms.FormBorderStyle.SizableToolWindow, hence only "Close" button is shown in the window's caption. It is possible to change the floating window border style and visibility of Maximize box using Floating event handler.
    Example
    This example sets sizable FormBorderStyle and shows Maximize box for each floating window shown.
    private void c1DockingManager1_Floating(object sender, FloatingEventArgs e)
    {
        e.FormBorderStyle = FormBorderStyle.Sizable;
        e.MaximizeBox = true;
    }
    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