{"id":77,"date":"2011-05-22T07:40:36","date_gmt":"2011-05-22T07:40:36","guid":{"rendered":"http:\/\/devnot.wordpress.com\/?p=77"},"modified":"2011-05-22T07:40:36","modified_gmt":"2011-05-22T07:40:36","slug":"allow-a-user-to-resize-an-autosize-form","status":"publish","type":"post","link":"https:\/\/thomas-jansen.eu\/?p=77","title":{"rendered":"Allow a user to resize an Autosize form"},"content":{"rendered":"<p>Set a form to &#8220;autosize&#8221;\u00a0 allows the form to shrink or grow by it&#8217;s contents. It however does not allow the user to resize the form manually.<\/p>\n<p>To allow the user to resize the form set the form <em>AutoSize<\/em> property to false in the form <em><span style=\"text-decoration:underline;\">onLoad<\/span><\/em> event handler. This\u00a0 allows the form resize initially but user resizable afterwards.<\/p>\n<p>Of course changing the contents of the hosted controls may require you to resize the form. You can set the <em>AutoSize\u00a0<\/em> to true before making the changes or use the <em>GetPreferredSize<\/em> method and resize the form yourself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Set a form to &#8220;autosize&#8221;\u00a0 allows the form to shrink or grow by it&#8217;s contents. It however does not allow the user to resize the form manually. To allow the user to resize the form set the form AutoSize property to false in the form onLoad event handler. This\u00a0 allows the form resize initially but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[11,35,42],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-c","tag-autosize","tag-form","tag-manual-resize"],"_links":{"self":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":0,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"wp:attachment":[{"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas-jansen.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}