<?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 : SOLVED: Show Yes,No not True,False in Item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : SOLVED: Show Yes,No not True,False in Item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 24 May 2026 14:35:57 +0000</pubDate>
  <lastBuildDate>Thu, 15 Apr 2010 17:42: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=16585</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[SOLVED: Show Yes,No not True,False in Item : Hi Aaron,  I&amp;#039;ve taken the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58108&amp;title=solved-show-yesno-not-truefalse-in-item#58108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16585<br /><strong>Posted:</strong> 15 April 2010 at 5:42pm<br /><br />Hi Aaron,<br /><br />I've taken the easier path by using a string item and using "Yes","No". I then check the PropertyGrid_ValueChanged() event to do what I need to do.<br /><br />]]>
   </description>
   <pubDate>Thu, 15 Apr 2010 17:42:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58108&amp;title=solved-show-yesno-not-truefalse-in-item#58108</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Show Yes,No not True,False in Item : Hi,  To get rid of the True...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58104&amp;title=solved-show-yesno-not-truefalse-in-item#58104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 16585<br /><strong>Posted:</strong> 15 April 2010 at 5:02pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>To get rid of the True &amp; False constraints just call <strong>Item.Constraints.Remove </strong>before adding constraints "Yes" &amp; "No" </DIV><DIV>&nbsp;</DIV><DIV>Or </DIV><DIV>&nbsp;</DIV><DIV>The propertyGridItemBool actually has 2 constraints already so you could:</DIV><DIV>&nbsp;</DIV><DIV>Dim Item As PropertyGridItem<BR>Set Item = Category.AddChildItem(PropertyItemBool, "Bool", 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Constraints(1).Caption = "Yes"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Constraints(2).Caption = "No"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>&nbsp;</DIV><DIV><strong>but you aren't able to select Yes</strong>&nbsp;<img src="https://forum.codejock.com/smileys/smiley5.gif" border="0">&nbsp;I would expect this to work but it doesn't</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Better use Enum instead but then again you have to check value in ValueChanged event. </DIV><DIV>&nbsp;</DIV><DIV>Dim Item As PropertyGridItem<BR>Set Item = Category.AddChildItem(PropertyItemEnum, "Enum", "")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Constraints.Add "Yes", True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Only allow selection with arrow</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item.Id = PROPITEM_ENUM</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Private Sub wndPropertyGridFiles_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select case Item.Id </DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case&nbsp;PROPITEM_ENUM</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print CBool(Item.Value)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 15 Apr 2010 17:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58104&amp;title=solved-show-yesno-not-truefalse-in-item#58104</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Show Yes,No not True,False in Item : Hi all, How do I &amp;#034;swap&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58068&amp;title=solved-show-yesno-not-truefalse-in-item#58068</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6028">mstuart</a><br /><strong>Subject:</strong> 16585<br /><strong>Posted:</strong> 13 April 2010 at 7:13pm<br /><br />Hi all,<br />How do I "swap" out the default True,False for Yes,No in the Constraints for a PropertyItemBool type Item?<br /><br />I've added the constraints, but the result is 4 options:<br />True,False,Yes,No.<br /><br />I know I could probably make the Item a PropertyItemString, but the Data wouldn't be boolean True/False.<br /><br />]]>
   </description>
   <pubDate>Tue, 13 Apr 2010 19:13:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16585&amp;PID=58068&amp;title=solved-show-yesno-not-truefalse-in-item#58068</guid>
  </item> 
 </channel>
</rss>