We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MskedEditBox. Problems using numeric masks.

Thread ID:

Created:

Updated:

Platform:

Replies:

15953 Jul 1,2004 06:59 AM UTC Jul 1,2004 11:46 AM UTC WinForms 1
loading
Tags: Tools
Rubén
Asked On July 1, 2004 06:59 AM UTC

We need a mask like this 999.999.999,99 Thousand separator is set to "." Decimal separator is set to "," TextAling is set to "Right" If user types 12345,08 the result shown is 123,45 ,08. when the expected result was 12.345,08 If we change Mask to 999,999,999.99 ( without changes on any more properties ) the result shown is 123.45 . ,08 Properties UsageMode and InputMode don''t cause any changes. What are we doing wrong ? Thank you very much. Rubén

Administrator [Syncfusion]
Replied On July 1, 2004 11:46 AM UTC

Hi Ruben, The MaskedEditBox supports different Culture settings. So if you set the Culture property to say Spanish(Spain) the ThousandSeperator and DecimalSeperator properties are set accordingly. You need to set the Mask property to: 999,999,999.99 because the . and , are placeholders for the decimal and the thousand separators respectively and they get replaced as per the settings specified (in your case . for the thousand and , for the decimal) when you run your application. Now you can set the TextAlign property to Right and you should be all set. Regards, Arun

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;