NumericUpDown Control leading Zeros

C

cmdolcet69

Does anyone know how to set a property to display the leading zeros in
the numberic updown control for vb 2005?
I'm using the control and want to input a value of 01 however it will
just show 1?
 
C

cfps.Christian

You can always inherit from the numeric up down and override the text
property to display leading zeros based upon the number length and the
max number length.
 
C

cmdolcet69

You can always inherit from the numeric up down and override the text
property to display leading zeros based upon the number length and the
max number length.

How do i do that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top