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
417
UltraNumericEditor Display three decimal places and allow edits
posted

I seem to be getting myself in a real fluster here over something as simple as an UltraNumericEditor. From my understanding of these controls there are two properties which are used to format the display of the value as presented to the user. These are FormatString which applies to the appearance of the control value when not in edit mode, and MaskInput which is applied when the user is in edit mode and is entering/editing a value. You’d therefore think that it wouldn’t be that difficult to work out how to display a decimal value from 00.001 to 99.999.

  • I’ve set the numeric type of my control to: Double
  • I’ve set both the MaskInput and the FormatString to: +nn.nnn
  • I’ve set my min and max values to 00.001 and 9.999 respectively.
  • I’ve tried just about ever combination and control mask possible.


1)    For the life of me I can’t seem to get the control to display or allow for the setting of the third decimal place.


2)    Can I alter the incremental value of the control such that when the user click on the spin control it increments the value by 0.005


3)    When I initially added the control to the form the windows designer generated code seems to declare this control as Dim within the InitializeComponent thus the scope of the control is limited to this method. I can’t seem to work out why its not declared as Friend WithEvents outside of this block so that it can be seen from the forms main class object. Each time I make a modification to this form I have to manually alter the designer generated code to ensure that the control is declared with a greater scope, why is this happening? Any ideas welcome!


4)    If infragistics were still at school, I’d have to mark their report card for this subject as “could do better”.

Your references here are out of date …
Your article here is next to useless and refers to a list of input mask characters which are not listed, or referenced.

Any help on this one would be much appreciated as I’m about done banging my head against the monitor now.

Kind Regards,

Tim

Parents Reply Children
No Data