{"id":43,"date":"2009-10-27T00:25:56","date_gmt":"2009-10-27T00:25:56","guid":{"rendered":"http:\/\/jcrawfor74.wordpress.com\/?p=43"},"modified":"2009-10-27T00:25:56","modified_gmt":"2009-10-27T00:25:56","slug":"windows-form-label-control-autosize-and-wrap-text-vertically","status":"publish","type":"post","link":"https:\/\/ntsblog.homedev.com.au\/index.php\/2009\/10\/27\/windows-form-label-control-autosize-and-wrap-text-vertically\/","title":{"rendered":"Windows form Label Control Autosize and wrap text vertically"},"content":{"rendered":"<div id=\"ntsbl-3737106531\" class=\"ntsbl-before-content ntsbl-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6288941070289539\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px;\" \ndata-ad-client=\"ca-pub-6288941070289539\" \ndata-ad-slot=\"9356781486\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div><p>The other day I was trying to get a label control to autosize vertically and struggled to do it&#8230; but there is a simple trick&#8230;<\/p>\n<p>Set the maximum width.<\/p>\n<p>If you say &#8220;AutoSize=true&#8221; but set no MaximumSize.Width property it will just disappear off the right hand side of you form.<\/p>\n<p>Set the MaximumSize.Width and the control autosizes correctly and wraps the text in the label control.<\/p>\n<p>Cheers<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The other day I was trying to get a label control to autosize vertically and struggled to do it&#8230; but there is a simple trick&#8230; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-windows-forms"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=43"}],"version-history":[{"count":0,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}