ComponentOne Menus and Toolbars for WinForms
Floating Event
Example 

C1.Win.C1Command.4 Assembly > C1.Win.C1Command Namespace > C1DockingManager Class : Floating Event
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;
}
See Also