# C1.Win.Command.C1DockingManager.Floating

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_Command_C1DockingManager_Floating" data-uid="C1.Win.Command.C1DockingManager.Floating" class="text-break">Floating Event
</h1>
<div class="markdown level0 summary"><p>Notifies that a <a class="xref" href="C1.Win.Command.C1DockingTab.html">C1DockingTab</a> or a <a class="xref" href="C1.Win.Command.C1DockingTabPage.html">C1DockingTabPage</a> is changing state to floating. Can
be canceled.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Command.html">C1.Win.Command</a></h6>
<h6><strong>Assembly</strong>: C1.Win.Command.10.dll</h6>
<h5 id="C1_Win_Command_C1DockingManager_Floating_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Behavior&quot;)]
[C1Description(&quot;C1DockingManager.Floating&quot;, &quot;Notifies that a C1DockingTab or a C1DockingTabPage is changing state to floating.&quot;)]
public event FloatingEventHandler Floating</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Behavior&quot;)&gt;
&lt;C1Description(&quot;C1DockingManager.Floating&quot;, &quot;Notifies that a C1DockingTab or a C1DockingTabPage is changing state to floating.&quot;)&gt;
Public Event Floating As FloatingEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Command.FloatingEventHandler.html">FloatingEventHandler</a></td>
      <td>Notifies that a  or a  is changing state to floating. Can be canceled.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Command_C1DockingManager_Floating_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>By default, the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.form.formborderstyle">FormBorderStyle</a> of the floating window is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.formborderstyle#system-windows-forms-formborderstyle-sizabletoolwindow">SizableToolWindow</a>, hence only &quot;Close&quot; button is shown in the window's caption.
It is possible to change the floating window border style and visibility of Maximize box using <a class="xref" href="C1.Win.Command.C1DockingManager.Floating.html">Floating</a> event handler.</p>
</div>
<h5 id="C1_Win_Command_C1DockingManager_Floating_examples"><strong>Examples</strong></h5>
<p>This example sets sizable FormBorderStyle and shows Maximize box for each floating window shown.</p>
<pre><code class="lang-csharp">private void c1DockingManager1_Floating(object sender, FloatingEventArgs e)
{
    e.FormBorderStyle = FormBorderStyle.Sizable;
    e.MaximizeBox = true;
}</code></pre>

</div>
