New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug On NumericUpDown #3166

Closed
ikeas68 opened this Issue Jan 22, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@ikeas68

ikeas68 commented Jan 22, 2018

i have discover a bug in numericUpDown
if i have a string format like this
StringFormat="0.###"
and set a value to 0.33333333333
the vaue is truncat to 0.333

if i want to preserv initial value it's not possible

@punker76

This comment has been minimized.

Member

punker76 commented Jan 22, 2018

@ikeas68 Can you create a short sample? thx!

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 22, 2018

a complete project ?

@punker76

This comment has been minimized.

Member

punker76 commented Jan 22, 2018

@ikeas68 Yes. Short and simple as possible.

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 22, 2018

ok tomorrow morning

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 23, 2018

i check with version 1.4.1 and 1.5 and in the sample i have no problem
i check directly in my software

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 23, 2018

it's seem to be a problem with lost focus
the binded value is updated with string format when focus lost (reupdate data when string fromat is applyed ... the original data value is not preserved)
see my project

  • set value in numeric up down to 5.33333333333
  • click on button
  • click on button
  • set cursor to numeric up down
  • click on button
@ikeas68

This comment has been minimized.

ikeas68 commented Jan 23, 2018

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 23, 2018

after discuss whith my friend the better solution is to re-set the original value in numeric updown when the component get focus

@punker76 punker76 self-assigned this Jan 23, 2018

@punker76 punker76 added this to the 1.6.0 milestone Jan 23, 2018

@ikeas68

This comment has been minimized.

ikeas68 commented Jan 23, 2018

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment