# Dynamic resize on Desktop edition platform

**URL:** <https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772>\
**Category:** WinForms\
**Created:** [August 12, 2011, 4:08am UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772 "2011-08-12T04:08:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@tan](https://community.thinkgeo.com/u/tan)\
**Post date:** [August 12, 2011, 4:08am UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/1 "2011-08-12T04:08:43Z")

</div>

Hi,

I&nbsp;encountered&nbsp;an&nbsp;problem&nbsp;while&nbsp;performing&nbsp;dynamic&nbsp;resizing&nbsp;on&nbsp;the&nbsp;main&nbsp;form&nbsp;itself.&nbsp;  
  
It&nbsp;seemed&nbsp;that&nbsp;the&nbsp;winform&nbsp;did&nbsp;not&nbsp;resize&nbsp;itself&nbsp;with&nbsp;respect&nbsp;to&nbsp;the&nbsp;new&nbsp;length&nbsp;adjustment&nbsp;from&nbsp;main&nbsp;form&nbsp;as&nbsp;shown&nbsp;in&nbsp;the&nbsp;imagesfrom&nbsp;the&nbsp;attachment.

Is&nbsp;there&nbsp;a&nbsp;solution&nbsp;to&nbsp;this&nbsp;problem?

With&nbsp;thanks&nbsp;in&nbsp;advance,

ZP

&nbsp;

[![](https://community.thinkgeo.com/uploads/default/original/1X/f9a75072d76d01b524d5f95ef36cf1741abe7c53.png)](http://gis.thinkgeo.com/DesktopModules/ActiveForums/viewer.aspx?portalid=1&moduleid=623&attachid=3750)[![](https://community.thinkgeo.com/uploads/default/original/1X/517fbe4840602951289b4344bf95919ad3618981.png)](http://gis.thinkgeo.com/DesktopModules/ActiveForums/viewer.aspx?portalid=1&moduleid=623&attachid=3751)

&nbsp;

&nbsp;

[  
  
](http://gis.thinkgeo.com/DesktopModules/ActiveForums/viewer.aspx?portalid=1&moduleid=623&attachid=3750)

[extent.png](https://community.thinkgeo.com/uploads/default/original/1X/0629a34f06c4569e684e80e10649dc7123ffebba.png) (36.7 KB)  
[shrink.png](https://community.thinkgeo.com/uploads/default/original/1X/950c57afb1f0bda6a3e509b96b329b4e84affbf9.png) (46.7 KB)

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [August 12, 2011, 9:47am UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/2 "2011-08-12T09:47:34Z")

</div>

tan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;post,&nbsp;you&nbsp;can&nbsp;set&nbsp;the&nbsp;Anchor&nbsp;property&nbsp;of&nbsp;the&nbsp;map&nbsp;panel&nbsp;to&nbsp;‘Top,&nbsp;Bottom,&nbsp;Left,&nbsp;Right’.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![tan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@tan](https://community.thinkgeo.com/u/tan)\
**Post date:** [August 14, 2011, 7:44pm UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/3 "2011-08-14T19:44:05Z")

</div>

Thanks&nbsp;for&nbsp;your&nbsp;advice.

Apparently,&nbsp;this&nbsp;code&nbsp;only&nbsp;allows&nbsp;the&nbsp;map&nbsp;panel&nbsp;to&nbsp;anchor&nbsp;at&nbsp;a&nbsp;certain&nbsp;position&nbsp;of&nbsp;the&nbsp;main&nbsp;form&nbsp;without&nbsp;changing&nbsp;its&nbsp;orginal&nbsp;size&nbsp;during&nbsp;resizing.

Is&nbsp;it&nbsp;possible&nbsp;for&nbsp;the&nbsp;size&nbsp;of&nbsp;the&nbsp;map&nbsp;panel&nbsp;to&nbsp;be&nbsp;adjustable&nbsp;too?

With&nbsp;Regards,

ZP

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [August 15, 2011, 1:49pm UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/4 "2011-08-15T13:49:54Z")

</div>

tan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;feed&nbsp;back,&nbsp;I&nbsp;think&nbsp;this&nbsp;way&nbsp;can&nbsp;working,&nbsp;you&nbsp;can&nbsp;check&nbsp;our&nbsp;how&nbsp;do&nbsp;i&nbsp;samples&nbsp;and&nbsp;compare&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![tan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/f07891/32.png) [@tan](https://community.thinkgeo.com/u/tan)\
**Post date:** [August 15, 2011, 8:20pm UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/5 "2011-08-15T20:20:14Z")

</div>

I&nbsp;think&nbsp;i&nbsp;finally&nbsp;get&nbsp;what&nbsp;you&nbsp;mean.&nbsp;It's&nbsp;working&nbsp;now.&nbsp;Sorry&nbsp;for&nbsp;my&nbsp;poor&nbsp;understanding.&nbsp;

Just&nbsp;to&nbsp;benefit&nbsp;the&nbsp;rest&nbsp;of&nbsp;the&nbsp;readers&nbsp;with&nbsp;similar&nbsp;problem,&nbsp;this&nbsp;is&nbsp;amended&nbsp;coding&nbsp;required:

&nbsp;

winformsMap1.Anchor&nbsp;=&nbsp;AnchorStyles.Bottom&nbsp;|&nbsp;AnchorStyles.Left&nbsp;|&nbsp;AnchorStyles.Right&nbsp;|&nbsp;AnchorStyles.Top;&nbsp;

&nbsp;

Thanks&nbsp;for&nbsp;your&nbsp;help,

ZP

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [August 17, 2011, 2:43pm UTC](https://community.thinkgeo.com/t/dynamic-resize-on-desktop-edition-platform/1772/6 "2011-08-17T14:43:51Z")

</div>

tan,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;feedback&nbsp;and&nbsp;information.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary
