<?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="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Masked Text Entry</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Masked Text Entry</description>
  <pubDate>Wed, 15 Apr 2026 19:43:44 -700</pubDate>
  <lastBuildDate>Wed, 29 Aug 2007 19:27:16 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=392</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Masked Text Entry : I have created my own custom textbox...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1034#1034</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=106" rel="nofollow">MichaelP</a><br /><strong>Subject:</strong> 392<br /><strong>Posted:</strong> 29-Aug-2007 at 7:27pm<br /><br />I have created my own custom textbox control from the Windows.Forms.MaskedTextBox control. That control already has the mask function so I just extended it to suit the GL code formatting I need - i.e. adjustable separator string and adjustable number of segments in the GL code. This works OK.<DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>Next I wanted to add a button on the text box to pop up an alternative entry form, but I haven't had success there. I tried using a usercontrol that includes a textbox and a button, but now the usercontrol is no longer a Windows.Forms.TextBoxBase object and hence I can't use DevForce's TextBoxDataBinder.<DIV>For now I think I will just forget about having the button on the databound textbox. I will try adding a double-click event to display the pop up on my custom textbox control and then I can just add a button that I will need to redirect to that double-click event every time I use this textbox control.</DIV>]]>
   </description>
   <pubDate>Wed, 29 Aug 2007 19:27:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1034#1034</guid>
  </item> 
  <item>
   <title>Masked Text Entry : I think what you may need to do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1033#1033</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=63" rel="nofollow">TrevLeyb</a><br /><strong>Subject:</strong> 392<br /><strong>Posted:</strong> 29-Aug-2007 at 4:15pm<br /><br />I think what you may need to do here (assuming you are not using any 3rd party control libraries which do support masked editing) is to create a custom control derived from the TextEdit control. You will then need to create an event handler on the keydown event and on each keypress, reparse/reformat your data and put it back into the control. <DIV>&nbsp;</DIV><DIV>It can be slightly tricky from memory, but I have done something along these lines before. If you get stuck, let me know and I can try to take a look at mocking something up over the weekend. </DIV><DIV>&nbsp;</DIV><DIV>Trevor</DIV>]]>
   </description>
   <pubDate>Wed, 29 Aug 2007 16:15:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1033#1033</guid>
  </item> 
  <item>
   <title>Masked Text Entry : Thanks for the suggestions. I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1032#1032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=106" rel="nofollow">MichaelP</a><br /><strong>Subject:</strong> 392<br /><strong>Posted:</strong> 29-Aug-2007 at 4:04pm<br /><br />Thanks for the suggestions. I would assume a pre-verifier event would fire after the entry has been completed, i.e. when the user moves to a new field, so that would not allow for the - character to appear when required. <DIV>&nbsp;</DIV><DIV>I started playing around with a Data Binder to make a custom control for entry, but this doesn't seem to be available in the DataGridViewBindingManager, even though it is available in the ControlBindingManager. Maybe I just can't easily use a .Net DataGridView and need a DevEx or Infragistics grid.</DIV>]]>
   </description>
   <pubDate>Wed, 29 Aug 2007 16:04:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1032#1032</guid>
  </item> 
  <item>
   <title>Masked Text Entry : Nice question MichaelP, its not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1017#1017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=123" rel="nofollow">owais,zahid</a><br /><strong>Subject:</strong> 392<br /><strong>Posted:</strong> 29-Aug-2007 at 6:02am<br /><br />Nice question MichaelP, its not in my knowledge that ideablade can support the auto formatting of the code. But i can give you a suggestion that might work for you.<DIV>&nbsp;</DIV><DIV>Divide your questions in 2 part. </DIV><DIV>&nbsp;</DIV><DIV>1) For auto formatting, you should use per-verifier and handle the typing of the user. (not sure it will work).</DIV><DIV>&nbsp;</DIV><DIV>2) Make post verifer that will check the valid input from the user. I have done this thing in order to check the phone number format typed by the user. </DIV>]]>
   </description>
   <pubDate>Wed, 29 Aug 2007 06:02:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1017#1017</guid>
  </item> 
  <item>
   <title>Masked Text Entry : I have a property that represents...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1013#1013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=106" rel="nofollow">MichaelP</a><br /><strong>Subject:</strong> 392<br /><strong>Posted:</strong> 28-Aug-2007 at 9:53pm<br /><br />I have a property that represents a General Ledger code, e.g. 123-45-678-9. Is there some way using Data Converter and/or View Descriptor to allow for this formatting to happen whenever a user tries to make an entry in a textbox or grid column data bound to this property?<DIV>&nbsp;</DIV><DIV>Ideally I would like to set it up so as the user types the start of the GL code 1234 the textbox would show 123-4 etc.</DIV><DIV>&nbsp;</DIV><DIV>After entry I would then need to validate the entry did conform to the required format.</DIV><DIV>&nbsp;</DIV><DIV>I also would like the possibility of optionally popping up an entry form to help them enter the segments of the GL code, e.g. 123 may correspond to a state and 45 may correspond to a department code etc. This could be using a button or double-clicking etc.</DIV><DIV>&nbsp;</DIV><DIV>Can anyone point me in the right direction to do this?</DIV>]]>
   </description>
   <pubDate>Tue, 28 Aug 2007 21:53:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=392&amp;PID=1013#1013</guid>
  </item> 
 </channel>
</rss>