<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Showing An Array On A Form; Autosizing ColumnWidths Of A ListBox</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:06:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Brian Bishop</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/#comment-32445</link>
		<dc:creator>Brian Bishop</dc:creator>
		<pubDate>Mon, 19 May 2008 15:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1843#comment-32445</guid>
		<description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I was trying to solve this same problem recently (resize the columns of listbox). But, as the width of some of the text values varied too much (one extra long string made the control look weird), I gave up and used ListView control instead; users drag the width if they want, and col headings are embedded, which looks nice. Might use some of your ideas to set a better default width though.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I was trying to solve this same problem recently (resize the columns of listbox). But, as the width of some of the text values varied too much (one extra long string made the control look weird), I gave up and used ListView control instead; users drag the width if they want, and col headings are embedded, which looks nice. Might use some of your ideas to set a better default width though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Bullen</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/#comment-32356</link>
		<dc:creator>Stephen Bullen</dc:creator>
		<pubDate>Thu, 15 May 2008 18:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1843#comment-32356</guid>
		<description>&lt;p&gt;Jan Karel:&lt;br&gt;
2. Slightly more efficient, yes, but there&#039;s a huge difference between iiiiii and wwwwww. I&#039;ve always gone for the full-text approach and never had a *noticeable* delay.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jan Karel:<br />
2. Slightly more efficient, yes, but there&#8217;s a huge difference between iiiiii and wwwwww. I&#8217;ve always gone for the full-text approach and never had a *noticeable* delay.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/#comment-32349</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Thu, 15 May 2008 11:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1843#comment-32349</guid>
		<description>&lt;p&gt;Andy: Good point.&lt;/p&gt;
&lt;p&gt;Stephen:&lt;br&gt;
1. Got it. Finally solved that little mystery: WordWrap was the property I overlooked. I&#039;ll update the article and the DL to reflect the changes.&lt;br&gt;
2. I thought it might be more efficient than writing the caption for the label each time, fetching the max width, .... So I just collect the max # of characters and set the width using a repeated wide character.&lt;br&gt;
3. Silly mistake...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Andy: Good point.</p>
<p>Stephen:<br />
1. Got it. Finally solved that little mystery: WordWrap was the property I overlooked. I&#8217;ll update the article and the DL to reflect the changes.<br />
2. I thought it might be more efficient than writing the caption for the label each time, fetching the max width, &#8230;. So I just collect the max # of characters and set the width using a repeated wide character.<br />
3. Silly mistake&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Bullen</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/#comment-32348</link>
		<dc:creator>Stephen Bullen</dc:creator>
		<pubDate>Thu, 15 May 2008 09:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1843#comment-32348</guid>
		<description>&lt;p&gt;A few comments about the technique:&lt;br&gt;
1. If you have the lblHidden set to not wraptext, you can keep it autosizing and there&#039;s no need to set the width to anything yourself or duplicate the setting. Just pop the text in and read the width.&lt;br&gt;
2. I don&#039;t understand why you&#039;re using cell length counts and repeated &#039;m&#039; characters. Why don&#039;t you just put the actual text in the autosize box?&lt;br&gt;
3. To avoid international issues, it&#039;s a good idea to take the integer value (rounding up) of the label width when building the columnwidth string.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A few comments about the technique:<br />
1. If you have the lblHidden set to not wraptext, you can keep it autosizing and there&#8217;s no need to set the width to anything yourself or duplicate the setting. Just pop the text in and read the width.<br />
2. I don&#8217;t understand why you&#8217;re using cell length counts and repeated &#8216;m&#8217; characters. Why don&#8217;t you just put the actual text in the autosize box?<br />
3. To avoid international issues, it&#8217;s a good idea to take the integer value (rounding up) of the label width when building the columnwidth string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Pope</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/05/14/showing-an-array-on-a-form-autosizing-columnwidths-of-a-listbox/#comment-32346</link>
		<dc:creator>Andy Pope</dc:creator>
		<pubDate>Thu, 15 May 2008 08:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1843#comment-32346</guid>
		<description>&lt;p&gt;This is exactly how I do my column sizing for listboxes.&lt;/p&gt;
&lt;p&gt;But there is no need to repeat the resize if you set the Width property to a larger value. Try setting it to 9999 and comment out the duplication.&lt;/p&gt;
&lt;p&gt;[i]Note: I also added this comment to your own sites comment page[/i]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is exactly how I do my column sizing for listboxes.</p>
<p>But there is no need to repeat the resize if you set the Width property to a larger value. Try setting it to 9999 and comment out the duplication.</p>
<p>[i]Note: I also added this comment to your own sites comment page[/i]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

