title: How To Resize AutoCAD Palette Set
body: <h2>Goal</h2>
  
  <p>Resize the palette set on plugin start up so that it looks like so:</p>
  
  <p><img src="https://i.stack.imgur.com/e6xUt.png" alt="Palette Set Goal"></p>
  
  <p>Everything is correctly adjusted here and looks nice. This setup is <em>saved</em> when I close AutoCAD manually. Although, my goal would be to make the program make it start up like this.</p>
  
  <hr>
  
  <h2>Current Start-Up Result</h2>
  
  <p>Here's the result I get on start up:</p>
  
  <p><img src="https://i.stack.imgur.com/6LQ1s.png" alt="Current Palette Set Result"></p>
  
  <p>As you can see, it's not wide enough. The width needs to get larger but the height is correctly set. </p>
  
  <hr>
  
  <h2>Current Attempt</h2>
  
  <p>Here is what I have when starting up my application:</p>
  
  <pre><code>&lt;CommandMethod("Hunter-P")&gt; _
  Public Sub HunterP()
      'Tool Palette
      If ps Is Nothing Then
          ps = New Autodesk.AutoCAD.Windows.PaletteSet("Hunter Palette Set", "", New Guid("{ECBFEC73-9FE4-4aa2-8E4B-3068E94A2BFA}"))
          ps.Style = Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowPropertiesMenu Or Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowAutoHideButton Or _
                     Autodesk.AutoCAD.Windows.PaletteSetStyles.ShowCloseButton
          projPalette = New tpProjectToolPalette(Me)
          convPalette = New tpConveyorToolPalette(Me)
          ps.Add("Projects", projPalette)
          ps.Add("Conveyors", convPalette)
      End If
  
      ps.Visible = True
      ps.Dock = Autodesk.AutoCAD.Windows.DockSides.Left ' Docks the palette set to the left
      ps.Size = New System.Drawing.Size(350, 800) 'Sets the width and height
      convPalette.Visible = False
  
      'Activate Project ToolPalette
      ps.Activate(0)
      If m_DocData Is Nothing Then
          m_DocData = New MyDocData
      End If
  
      AddHandler AcApp.DocumentManager.DocumentActivated, AddressOf Me.DocumentManager_DocumentActivated
      AddHandler AcApp.DocumentManager.DocumentToBeDeactivated, AddressOf Me.DocumentManager_DocumentToBeDeactivated
  End Sub
  </code></pre>
  
  <p>This result seems to not actually dock the palette set. There is unwanted space at the bottom.</p>
  
  <p><img src="https://i.stack.imgur.com/UcQr6.png" alt="Current Palette Set After Code"></p>
  
  <hr>
  
  <p>How do we resize a palette set correctly?</p>