# Dock panel resize

**URL:** <https://discourse.mcneel.com/t/dock-panel-resize/97154>\
**Category:** Rhino Developer\
**Created:** [February 26, 2020, 1:57pm UTC](https://discourse.mcneel.com/t/dock-panel-resize/97154 "2020-02-26T13:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatrixRatrix](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/matrixratrix/32/529711_2.png) [@MatrixRatrix](https://discourse.mcneel.com/u/MatrixRatrix)\
**Post date:** [February 26, 2020, 1:57pm UTC](https://discourse.mcneel.com/t/dock-panel-resize/97154/1 "2020-02-26T13:57:24Z")

</div>

Hello ,

I have a Custom dockpanel like (sampleCsDockpanle) and  
I need resize this dockpanel (user control), I already try “this.Width = 250;” but seams make  
no efect.

Any tip?

---

<div class="post-metadata">

**Author:** ![JohnM](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/johnm/32/110506_2.png) [@JohnM](https://discourse.mcneel.com/u/JohnM)\
**Post date:** [February 27, 2020, 2:30pm UTC](https://discourse.mcneel.com/t/dock-panel-resize/97154/3 "2020-02-27T14:30:48Z")

</div>

The panel is sized to fit the available client space, try setting the minimum size if you don’t want the width to shrink less than 250. The panel is responsible for scrolling its own content so you may need to put your user panel in a scrolling container.

---

<div class="post-metadata">

**Author:** ![Will\_Wang](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/will_wang/32/513624_2.png) [@Will\_Wang](https://discourse.mcneel.com/u/Will_Wang)\
**Post date:** [April 15, 2020, 2:39pm UTC](https://discourse.mcneel.com/t/dock-panel-resize/97154/4 "2020-04-15T14:39:38Z")

</div>

Is that why setting the `UserControl AutoScroll` to `true` has no effect?

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/685184_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [June 12, 2023, 2:59pm UTC](https://discourse.mcneel.com/t/dock-panel-resize/97154/5 "2023-06-12T14:59:19Z")

</div>

A post was split to a new topic: [Panels on Laptop issue](https://discourse.mcneel.com/t/panels-on-laptop-issue/161323)
