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
100
NumericEditor. How to get rid of promptchars?
posted

Hey together,

in the UltraNumericEditor there is a PromptChar-Property. This also effects the MaskInput. Our controls we use were AlwaysInEditMode = true, to prevent jumping text.

Now we want to achieve that the '_' or ' '-PromptChar will not get displayed in the control. It's confusing when the cursor is jumping, when the controls text is not in the correct position (small controls, lot of InputMask), etc etc.

I already tried to set the InputMask dynamically when the value changed. So we could reduce the leading promptChars to only one ' ' before the number. The problem now is when the user pastes a hugh number into the control.

We already tried the property MaskDisplayMode, but this only has an effect inside no edit mode.

Do you have any ideas how to get to our goal? Or do you know how to override a method or get an event before a new value is applied?

Thanks in advance!