﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Masks on a numeric field</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:40:45 GMT</lastBuildDate><ttl>20</ttl><item><title>Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16648.aspx</link><description>How do I mask a numeric field.&lt;/P&gt;&lt;P&gt;e.g. if 1234.9900 and I want to display/ enter as 1234.99, even better if it was a negative no. if it can be displayed in red . In vfp there's a Mask proerty but I cant see similar property in .net or startaframe classes. Same one apply to Bank Sort Code (e.g. 123456 to be displayed as 12-34-56</description><pubDate>Wed, 28 May 2008 10:11:54 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16657.aspx</link><description>Hi Gerarld,&lt;/P&gt;&lt;P&gt;Try setting the control's&amp;nbsp;BindingFormat property = c2 in the Properties windows.</description><pubDate>Wed, 28 May 2008 10:11:54 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16655.aspx</link><description>Hi Gerard,&lt;/P&gt;&lt;P&gt;I don't personally use the masked textbox&amp;nbsp;so couldn't help you much with how the masking work's, I use Dev Express controls which have really nice masking features built into them so&amp;nbsp;I never have&amp;nbsp;used the standard masked text box&amp;nbsp;I just knew it was there in the toolbox. :)&lt;/P&gt;&lt;P&gt;Since&amp;nbsp;the masked textbox&amp;nbsp;is a just a standard winforms control I'm sure there should be info available either in msdn documentation&amp;nbsp;or via a google search on how to use that control.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Wed, 28 May 2008 09:44:32 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16652.aspx</link><description>Hi. I tried Mask on MaskedTextBox with a mask of 00,000.00 and tried 999,999.99 but say 3.17 was displayed as 317,000.0&amp;nbsp;&amp;nbsp;&amp;nbsp; what am I doing wrong ?</description><pubDate>Wed, 28 May 2008 09:10:16 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16650.aspx</link><description>Gerard,&lt;/P&gt;&lt;P&gt;There is&amp;nbsp;masked textbox control where you can set an input&amp;nbsp;mask. &lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/242ff4e2-270b-4bef-b9d6-d80c.png"&gt;</description><pubDate>Wed, 28 May 2008 07:42:46 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item><item><title>RE: Masks on a numeric field</title><link>http://forum.strataframe.net/FindPost16649.aspx</link><description>You will want to use the MaskedTextBox or a NumericUpDown control to enter numeric data and supply a mask.&amp;nbsp; You can technically also use the BindingFormat of a standard textbox, but in this case I would recommend using the MaskedTextBox instead.</description><pubDate>Wed, 28 May 2008 07:42:05 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>