Currency Mask Question

3 posts, 0 answers
  1. Guy
    Guy avatar
    60 posts
    Member since:
    Sep 2010

    Posted 16 Nov 2011 Link to this post

    Hi all,

    I'm using several MaskedTextBoxes and have the Mask property set to "C" for currency and the MaskType set to Numeric. This works fine however I cannot seem to enter a value higher than 9.99.

    I have looked for a solution online but can only find how to change the number of decimal places "C3" for example.

    Is this possible? Should I be using a custom Mask of some kind?

    Regards,


    Guy
  2. Guy
    Guy avatar
    60 posts
    Member since:
    Sep 2010

    Posted 17 Nov 2011 Link to this post

    It appears there was a conflict between having a null value and first selecting the field where the max value would be 9.99. If I was to move the cursor to the far left it would allow me write longer numbers.

    I have gotten around my issue by having default values in of 0.00 and using the following code to highlight the values to ensure that they are overwritten.

    void radMaskedEditBox1_MouseUp(object sender, MouseEventArgs e)
            {
                this.radMaskedEditBox1.SelectAll();
            }


    Please mark this as answered as I'm now happy with the above solution.

    Regards,

    Guy
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 18 Nov 2011 Link to this post

    Hello Guy,

    We are aware of this issue and we provided a fix for it in our latest release Q3 2011.

    I hope this helps.

    Regards,
    Peter
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top