'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.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
DockingTab | The floated C1DockingTab. |
DockingTabPage | The floated C1DockingTabPage. |
FormBorderStyle | Gets or sets border style of the floating window. |
MaximizeBox | 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