﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / General .NET Discussion / .NET Forums  / How to resize a label to display all the text / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Fri, 21 Nov 2008 11:00:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How to resize a label to display all the text</title><link>http://forum.strataframe.net/Topic11130-14-1.aspx</link><description>Thanks Ben.  I mull these options over.  :D</description><pubDate>Tue, 28 Aug 2007 13:20:33 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How to resize a label to display all the text</title><link>http://forum.strataframe.net/Topic11130-14-1.aspx</link><description>Well, you could let it auto-size and put your controls in a TablePanel or FlowLayoutPanel which both handle re-arranging controls when the size of the controls change.  Or, you could just use the System.Drawing.Graphics.MeasureString() method and resize the label manually.  Or, rearrange your form so that you don't have anything to the right of the label (like with localized applications where the label is on top of the textbox rather than to the left of it) and let it grow to the appropriate size (within reason ;)).</description><pubDate>Tue, 28 Aug 2007 10:14:54 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>How to resize a label to display all the text</title><link>http://forum.strataframe.net/Topic11130-14-1.aspx</link><description>i have a label that holds the name of a process.  It is possible that the name is too long to fit in the label. The label is not Autosized, and is anchored on the top, left and right, so it resizes within it's parent container (a splitter panel).  &lt;br&gt;&lt;br&gt;So, I'd like to be able to determine how long the text will be and either make the label larger (which just opens a whole pandoras box of issues, cause then a bunch of other stuff needs to be resized) or some other creative method to deal with this.  Any ideas?</description><pubDate>Mon, 27 Aug 2007 17:08:19 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>