Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1290
Small issue with the UltraCurrencyEditor
posted

Hi,

I'm not sure if any of you guys face this problem, 

in my UltraCurrencyEditor, there's a predefined value of $______0.00 whenever the control loads. When Iclick on the text box to enter an amount, say I want to enter $15.00. So naturally, I would key in the digits ONE ->  FIVE -> DECIMAL POINT -> ZERO -> ZERO, but the first 0 remains there always, so I'll get $150.00 instead.

I have to highlight the whole text field, and key in "1", "5", ".", "0", "0" to get it correct

How can I fix this?

Parents
  • 69832
    Suggested Answer
    Offline posted

    Typically one handles the Enter event, and calls the SelectAll method therein:

    ultraCurrencyEditor.Enter += new EventHandler(ultraCurrencyEditor_Enter);
                ultraCurrencyEditor.TabNavigation = MaskedEditTabNavigation.NextControl;

    void ultraCurrencyEditor_Enter(object sender, EventArgs e)
    {
        UltraCurrencyEditor control = sender as UltraCurrencyEditor;
        control.SelectAll();
    }

Reply Children