<?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 : setmask</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : setmask]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 07:50:56 +0000</pubDate>
  <lastBuildDate>Fri, 28 Mar 2008 10:07:39 +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=9556</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[setmask : Hi wakerunner   I think we are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=32696&amp;title=setmask#32696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 28 March 2008 at 10:07am<br /><br />Hi wakerunner <DIV>&nbsp;</DIV><DIV>I think we are doing something wrong. I was strugling with the IP address item and I gave up. Check my post I did earlier</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/forum_posts.asp?TID=9966" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=9966</A></DIV><DIV>&nbsp;</DIV><DIV>or</DIV><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/forum_posts.asp?TID=9944" target="_blank">http://forum.codejock.com/forum_posts.asp?TID=9944</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Mar 2008 10:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=32696&amp;title=setmask#32696</guid>
  </item> 
  <item>
   <title><![CDATA[setmask : It doesn&amp;#039;t look like the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31340&amp;title=setmask#31340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3351">wakerunner</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 19 February 2008 at 11:19am<br /><br />It doesn't look like the master is going to reply to this thread.<DIV>&nbsp;</DIV><DIV>It seems to me the setmask is very dysfunctional and does all kinds of weird things. It could be useful when you know the exact format that is needed such as a phone number.</DIV><DIV>&nbsp;</DIV><DIV>There should be a "legalcharacters" property that you could set as follows:</DIV><DIV>&nbsp;</DIV><DIV>propertygriditem.legalcharacters=".0123456789"</DIV><DIV>&nbsp;</DIV><DIV>That would be useful for when you want to limit input but don't care about the exact format.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 11:19:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31340&amp;title=setmask#31340</guid>
  </item> 
  <item>
   <title><![CDATA[setmask : Hi, When you use SetMask you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31335&amp;title=setmask#31335</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 19 February 2008 at 10:03am<br /><br /><P>Hi,</P><DIV>When you use SetMask you have to fill the entire field. In your case you have to set the value to .0007 in this case&nbsp;the propertygriditem does accept the value.&nbsp;Normally I would accept this behaviour&nbsp;because we won't accept wrong values the user would enter, right?</DIV><DIV>&nbsp;</DIV><DIV>But: I found something else,</DIV><DIV>&nbsp;</DIV><DIV>Set Item = Category.AddChildItem(PropertyItemString, "Number", "Number: .00.7")<BR>&nbsp;&nbsp;&nbsp; Item.SetMask "Currency: .0000", "Number: .____"</DIV><DIV>&nbsp;</DIV><DIV>When setting a value (sample above) to a PropertyGridItem, this value will be accepted&nbsp; .00.7&nbsp; (notice the dot). This is strange ??? </DIV><DIV>&nbsp;</DIV><DIV>Your value .07 won't be accepted and this will <img src="http://forum.codejock.com/smileys/smiley11.gif" border="0">. But we probably are doing something wrong <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0">&nbsp;Let's find out and listen to the master.</DIV><DIV>&nbsp;</DIV><DIV>By the way, did you ever see a underscore in a IP address? I guess not <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 10:03:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31335&amp;title=setmask#31335</guid>
  </item> 
  <item>
   <title><![CDATA[setmask : Yes I know that, but you didn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31105&amp;title=setmask#31105</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3351">wakerunner</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 12 February 2008 at 11:54am<br /><br />Yes I know that, but you didn't answer either question.<DIV>&nbsp;</DIV><DIV>Question 1 Why does Setmask ".0000", ".____" change the vale ".07" to ".____" when you click on that value?</DIV><DIV>&nbsp;</DIV><DIV>2nd Question, Is there another way of limiting input such as setting legal characters without using the setmask. If the setmask worked I guess it would be OK to use but as I said above either I am using it wrong or it does not work.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 12 Feb 2008 11:54:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31105&amp;title=setmask#31105</guid>
  </item> 
  <item>
   <title><![CDATA[setmask : .0000 already limits it to only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31104&amp;title=setmask#31104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 12 February 2008 at 11:49am<br /><br />.0000 already limits it to only 0-9]]>
   </description>
   <pubDate>Tue, 12 Feb 2008 11:49:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31104&amp;title=setmask#31104</guid>
  </item> 
  <item>
   <title><![CDATA[setmask : I&amp;#039;m having problems with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31047&amp;title=setmask#31047</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3351">wakerunner</a><br /><strong>Subject:</strong> 9556<br /><strong>Posted:</strong> 11 February 2008 at 1:05pm<br /><br /><P>I'm having problems with the setmask. </P><DIV>&nbsp;</DIV><DIV>Set Item = category.AddChildItem(PropertyItemString, "Setting Name")<BR>Item.SetMask ".0000", ".____"</DIV><DIV>item.id=4</DIV><DIV>&nbsp;</DIV><DIV>PG4.FindItem(4).Value = ".07"</DIV><DIV>&nbsp;</DIV><DIV>The code above displays the property grid with the .07 in the value, then when you click on the value it changes it to ".____"</DIV><DIV>&nbsp;</DIV><DIV>I am using this wrong? I am simply trying to limit the values that can be typed in. Is there a better way? There should be a "legal characters" property where you could simply set to ".0123456789" etc. for the characters it is legal to accept.</DIV>]]>
   </description>
   <pubDate>Mon, 11 Feb 2008 13:05:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9556&amp;PID=31047&amp;title=setmask#31047</guid>
  </item> 
 </channel>
</rss>