<?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 : Cant enter multiple lines Multiline control???????</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Cant enter multiple lines Multiline control???????]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 20:05:04 +0000</pubDate>
  <lastBuildDate>Sat, 14 Jun 2008 09:38:08 +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=11022</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[Cant enter multiple lines Multiline control??????? : Hi BoboP,The PropertyItemMultilineString...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36741&amp;title=cant-enter-multiple-lines-multiline-control#36741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 11022<br /><strong>Posted:</strong> 14 June 2008 at 9:38am<br /><br />Hi BoboP,<br><br>The PropertyItemMultilineString type seems to be for creating a drop-down multiline edit window that accepts an unlimited amount of text...The PropertyGrid cell portion will only accept a single line. if you want to limit the lines and accept Enter in the PG cell portion, try the following code:<br><br>(NOTE: You will have to adapt this slightly for the language you are using, I just realized you aren't using VB6...It should be fairly straight forward.)<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub Form_Load()<br>&nbsp;&nbsp; Dim itemP As PropertyGridItem<br>&nbsp;&nbsp; Dim objCat As PropertyGridItem<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; With Me.PropertyGrid1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .VariableItemsHeight = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set objCat = .AddCategory("Test")<br>&nbsp;&nbsp; End With<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; Set itemP = objCat.AddChildItem(PropertyItemString, "hi", "")&nbsp; ' Don't use PropertyItemMultilineString<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' it seems to just give you a multiline dropdown<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' The dropdown allows for unlimited lines no matter what<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' and the grid cell seems to only allow for a single line<br>&nbsp;&nbsp; With itemP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .EditStyle = &amp;H1000&nbsp; ' &amp;H1000 = Want return style (so user doesn't have to pres Ctrl+Enter)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' Don't use EditStyleVScroll unless you want the user<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' to be able to enter unlimited lines of text<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .MultiLinesCount = 3 ' Allow the regular string cell to be three lines high.<br>&nbsp;&nbsp; End With<br>End Sub<br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Sat, 14 Jun 2008 09:38:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36741&amp;title=cant-enter-multiple-lines-multiline-control#36741</guid>
  </item> 
  <item>
   <title><![CDATA[Cant enter multiple lines Multiline control??????? : Hi,  Do you have VariableItemsHeight...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36735&amp;title=cant-enter-multiple-lines-multiline-control#36735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11022<br /><strong>Posted:</strong> 14 June 2008 at 5:22am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Do you have VariableItemsHeight&nbsp; = True ?</DIV>]]>
   </description>
   <pubDate>Sat, 14 Jun 2008 05:22:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36735&amp;title=cant-enter-multiple-lines-multiline-control#36735</guid>
  </item> 
  <item>
   <title><![CDATA[Cant enter multiple lines Multiline control??????? : Hi ! Oleg !Thanks for replying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36728&amp;title=cant-enter-multiple-lines-multiline-control#36728</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3858">BoboP</a><br /><strong>Subject:</strong> 11022<br /><strong>Posted:</strong> 14 June 2008 at 12:49am<br /><br />Hi ! Oleg !<br><br>Thanks for replying . I tried pressing Ctrl + Enter . But No use <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"> <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"> <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle">,<br><br>What else can be the reason ? , I have ok button on the same form set as Accept button . So whenever I press enter ok button is pressed , Can this interfere in property grid Ctrl+Enter.<br><br>I have been trying this . I read earlier post regarding multi line control . But I can only enter only one value.<br><br><br><br><br>]]>
   </description>
   <pubDate>Sat, 14 Jun 2008 00:49:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36728&amp;title=cant-enter-multiple-lines-multiline-control#36728</guid>
  </item> 
  <item>
   <title><![CDATA[Cant enter multiple lines Multiline control??????? : Hi,  By default user have to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36684&amp;title=cant-enter-multiple-lines-multiline-control#36684</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11022<br /><strong>Posted:</strong> 13 June 2008 at 12:06pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>By default user have to press Ctrl+Enter for new line.</DIV>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 12:06:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36684&amp;title=cant-enter-multiple-lines-multiline-control#36684</guid>
  </item> 
  <item>
   <title><![CDATA[Cant enter multiple lines Multiline control??????? :   Hi !I have used property grid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36665&amp;title=cant-enter-multiple-lines-multiline-control#36665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3858">BoboP</a><br /><strong>Subject:</strong> 11022<br /><strong>Posted:</strong> 13 June 2008 at 7:00am<br /><br />Hi !<br><br>I have used property grid in my application , where I needed multi-line <br>text box for value part.<br><br>I have it , but then i cant enter multiple lines into it.<br>it just lets enter only one line.<br><br>PropertyGridItem itemP;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>itemP = materialDetailItem.AddChildItem(PropertyItemType.PropertyItemMultilineString,"hi","")<br><br>itemP.EditStyle = PropertyItemEditStyle.EditStyleMultiLine;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itemP.MultiLinesCount = 3;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; itemP.Height = 100;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>whats wrong here ?<br><img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br>Thanks<br><br><br>]]>
   </description>
   <pubDate>Fri, 13 Jun 2008 07:00:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11022&amp;PID=36665&amp;title=cant-enter-multiple-lines-multiline-control#36665</guid>
  </item> 
 </channel>
</rss>