<?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: PropertyGrid Setmask problems</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : SOLVED: PropertyGrid Setmask problems]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 06:33:13 +0000</pubDate>
  <lastBuildDate>Tue, 22 Apr 2008 10:50:40 +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=10088</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: PropertyGrid Setmask problems : Hi,  Yes, thanks. I did some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=34089&amp;title=solved-propertygrid-setmask-problems#34089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10088<br /><strong>Posted:</strong> 22 April 2008 at 10:50am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, thanks. I did some workaround in the value changed event. </DIV><DIV>&nbsp;</DIV><DIV>It's unbelievable that we have to do it like this. We have <strong>setmask</strong> and <strong>key</strong> <strong>events</strong> and both options are <strong><U><FONT size=4>useless</FONT></U></strong>. </DIV>]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 10:50:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=34089&amp;title=solved-propertygrid-setmask-problems#34089</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: PropertyGrid Setmask problems : In AfterEdit-Event you have the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=34073&amp;title=solved-propertygrid-setmask-problems#34073</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 10088<br /><strong>Posted:</strong> 22 April 2008 at 7:23am<br /><br />In AfterEdit-Event you have the NewValue you can change or in ValueChanged-Event you can change the Item.Value-Property.]]>
   </description>
   <pubDate>Tue, 22 Apr 2008 07:23:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=34073&amp;title=solved-propertygrid-setmask-problems#34073</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: PropertyGrid Setmask problems : Hi Oleg,Regex would be cool, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33381&amp;title=solved-propertygrid-setmask-problems#33381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 10088<br /><strong>Posted:</strong> 09 April 2008 at 9:03pm<br /><br />Hi Oleg,<br><br>Regex would be cool, but it might be easier to implement a BeforeEditInsert event that allows us to cancel any changes before they happen. This would allow us to easily allow/disallow keypresses for any reason.<br><br>Something like<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub BeforeEditInsert(NewText As String, Cancel As Boolean)<br>&nbsp;&nbsp;&nbsp; If Instr(1, NewText, "*") Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  ' Remove * characters from string to be inserted into item<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  NewText = Replace$(NewText, "*", "")<br>&nbsp;&nbsp;&nbsp; End If<br><br>&nbsp;&nbsp;&nbsp;  If IsNumeric(NewText) Then<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  ' Do not allow numeric strings to be inserted into item<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  &nbsp;&nbsp;  Cancel = True<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br></pre></td></tr></table><br><br>In the above example, any * characters about to be inserted into the item edit box would be removed, then if the text to be inserted was numeric, then the insertion would be completely cancelled. This is a nonsense example, but it illustrates two features:<br><br>1) Ability to modify the insertion text instead of cancel it completely<br>2) Ability to cancel the insertion of text completely.<br><br>Maybe not as powerful as regex support, but it should be easier to implement as an interim solution (NOTE: by passing NewText as a string, it makes it possible to handle Pasted text as well as single key presses).<br>]]>
   </description>
   <pubDate>Wed, 09 Apr 2008 21:03:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33381&amp;title=solved-propertygrid-setmask-problems#33381</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: PropertyGrid Setmask problems : Hi, Sorry no. Seems we need add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33128&amp;title=solved-propertygrid-setmask-problems#33128</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10088<br /><strong>Posted:</strong> 04 April 2008 at 3:32pm<br /><br />Hi,<DIV>Sorry no. Seems we need add regexp support for future :( Quite a lot of requests.</DIV>]]>
   </description>
   <pubDate>Fri, 04 Apr 2008 15:32:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33128&amp;title=solved-propertygrid-setmask-problems#33128</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: PropertyGrid Setmask problems : Hi,   I want to prevent the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33086&amp;title=solved-propertygrid-setmask-problems#33086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 10088<br /><strong>Posted:</strong> 04 April 2008 at 9:16am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>I want to prevent the user to type some characters. The <FONT size=5><FONT size=6>*</FONT> </FONT>and <FONT size=5><FONT size=6>?</FONT> </FONT></DIV><DIV><FONT size=4>Is it possible with Setmask ? Prefer a (working) sample how to do this.</FONT></DIV><DIV><FONT size=4></FONT>&nbsp;</DIV><DIV><FONT size=4>Thank you very much!!<img src="https://forum.codejock.com/smileys/smiley31.gif" border="0"></FONT></DIV><DIV><FONT size=4></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 Apr 2008 09:16:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10088&amp;PID=33086&amp;title=solved-propertygrid-setmask-problems#33086</guid>
  </item> 
 </channel>
</rss>