|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Resize Dockable Window Snippet (ArcObjects .NET 10.4 SDK) | 
Resize a floating dockable window.
///<summary>Resize a floating dockable window.</summary>
///  
///<param name="dockableWindow">An IDockableWindow interface.</param>
///<param name="width">A System.Int32 that is how much to increase the width of the dockable window. Less that 1 shrinks the window, 1 leaves the window the same size, greater that 1 makes it bigger. Example: 2</param>
///<param name="height">A System.Int32 that is how much to increase the height of the dockable window. Less that 1 shrinks the window, 1 leaves the window the same size, greater that 1 makes it bigger. Example: 2</param>
///   
///<remarks></remarks>
public void ResizeDockableWindow(ESRI.ArcGIS.Framework.IDockableWindow dockableWindow, System.Int32 width, System.Int32 height)
{
  ESRI.ArcGIS.Framework.IWindowPosition windowPos=dockableWindow as ESRI.ArcGIS.Framework.IWindowPosition;
  if (windowPos.State == ESRI.ArcGIS.Framework.esriWindowState.esriWSFloating)
  {
    windowPos.Move(0, 0, windowPos.Width * width, windowPos.Height * height);
  }
}
'''<summary>Resize a floating dockable window.</summary>
'''  
'''<param name="dockableWindow">An IDockableWindow interface.</param>
'''<param name="width">A System.Int32 that is how much to increase the width of the dockable window. Less that 1 shrinks the window, 1 leaves the window the same size, greater that 1 makes it bigger. Example: 2</param>
'''<param name="height">A System.Int32 that is how much to increase the height of the dockable window. Less that 1 shrinks the window, 1 leaves the window the same size, greater that 1 makes it bigger. Example: 2</param>
'''   
'''<remarks></remarks>
Public Sub ResizeDockableWindow(ByVal dockableWindow As ESRI.ArcGIS.Framework.IDockableWindow, ByVal width As System.Int32, ByVal height As System.Int32)
  Dim windowPos As ESRI.ArcGIS.Framework.IWindowPosition=CType(dockableWindow, ESRI.ArcGIS.Framework.IWindowPosition)
  If windowPos.State=ESRI.ArcGIS.Framework.esriWindowState.esriWSFloating Then
    windowPos.Move(0, 0, windowPos.Width * width, windowPos.Height * height)
  End If
End Sub