Decimal points in edit boxes

Started by
2 comments, last by Mulligan 21 years, 9 months ago
I have an UpDown control in an editbox. I want it to initially start at 0.0 and go up to 1.0 in increments of 0.1 How do i do this? I can only get it to do intergers.
Advertisement
Have declared the number as a float?

I think this will be moved to the beginners forum.
Spinner controls don''t work with floats. You have to roll your own.

Check out these sites:
codeguru.com
codeproject.com
Hi

the easiest way is to have one integer variable (say i)that you increase/decrease with the UpDown Control, and then just use 0.1 * i as the value for the text box.

------------
Runicsoft

This topic is closed to new replies.

Advertisement