<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Feature Request? Multiline issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Feature Request? Multiline issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 24 May 2026 17:53:14 +0000</pubDate>
  <lastBuildDate>Tue, 15 May 2007 05:23:34 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=6540</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Feature Request? Multiline issue : When it gets focus... freeze the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=22880&amp;title=feature-request-multiline-issue#22880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2181">Zach</a><br /><strong>Subject:</strong> 6540<br /><strong>Posted:</strong> 15 May 2007 at 5:23am<br /><br />When it gets focus... freeze the property grid... grab the current value... destroy that item.<DIV>&nbsp;</DIV><DIV>Add back in the same place an item that is a few lines bigger than they currently have.</DIV><DIV>&nbsp;</DIV><DIV>Use a Mono font</DIV><DIV>&nbsp;</DIV><DIV>After its been edited run another function that you would also run if the text area's width was changed through a resize.</DIV><DIV>&nbsp;</DIV><DIV>Get the current width of the text area.</DIV><DIV>&nbsp;</DIV><DIV>Do the math... how many characters can fit in each line... run through the value .. you can not do simple division - you got to figure out each ... break it, then back track to the first space or other character that it would word wrap on... take the remainder... repeat until none is left.</DIV><DIV>&nbsp;</DIV><DIV>You now know how many lines there is.... grab the value... destroy the control... add a new one in its place at the size you want.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Not as difficult as it sounds :) ... I have not done this here ... but it should work.&nbsp; I have on the other hand done it with a textbox in html to make an html textbox with line numbering that handled wordwrap without a problem.</DIV><DIV>&nbsp;</DIV><DIV>(Honestly takes less than 10 lines of code.. probably more like 5)</DIV><DIV>&nbsp;</DIV><DIV>When all done... unfreeze the propertygrid... the end user will notice nothing other than the textarea is the size of their text.</DIV>]]>
   </description>
   <pubDate>Tue, 15 May 2007 05:23:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=22880&amp;title=feature-request-multiline-issue#22880</guid>
  </item> 
  <item>
   <title><![CDATA[Feature Request? Multiline issue : p.s. I have also read the Adding...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=20834&amp;title=feature-request-multiline-issue#20834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2802">sbarkeruk</a><br /><strong>Subject:</strong> 6540<br /><strong>Posted:</strong> 01 March 2007 at 11:13am<br /><br />p.s. I have also read the Adding Multi-Line items tutorial, but there is still no option for autosizing. After editing to a smaller or larger text output, the row then does not look too good!]]>
   </description>
   <pubDate>Thu, 01 Mar 2007 11:13:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=20834&amp;title=feature-request-multiline-issue#20834</guid>
  </item> 
  <item>
   <title><![CDATA[Feature Request? Multiline issue : I am trying to setup a multiline...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=20833&amp;title=feature-request-multiline-issue#20833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2802">sbarkeruk</a><br /><strong>Subject:</strong> 6540<br /><strong>Posted:</strong> 01 March 2007 at 11:06am<br /><br />I am trying to setup a multiline string property item.<DIV>&nbsp;</DIV><DIV>I have already acheived this withthe use of the following (example) code:</DIV><DIV>&nbsp;</DIV><DIV>wndPropertyGrid.VariableItemsHeight = True<BR>Item.EditStyle = EditStyleMultiLine<BR>Item.MultiLinesCount = 4</DIV><DIV>&nbsp;</DIV><DIV>However, when I edit I may want to add more than or less than the 4 lines specified here!</DIV><DIV>&nbsp;</DIV><DIV><strong>So is there a way of setting an 'autosize' or similar so that the height adjusts to the text size (or number of carriage returns) after the AfterEdit event?</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV><strong>If not then could I request this please, as it seems that a few people have been trying to do this (looking at older postings).</strong></DIV><DIV>&nbsp;</DIV><DIV>Simon</DIV>]]>
   </description>
   <pubDate>Thu, 01 Mar 2007 11:06:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6540&amp;PID=20833&amp;title=feature-request-multiline-issue#20833</guid>
  </item> 
 </channel>
</rss>