I've noticed that when I request the Value
of a NumericUpDown
control in a C# app, the caret is reset to position 0. This is annoying because my app is periodically grabbing the value of the control, so if this happens while a user is typing into it the caret unexpectedly moves, messing with their input.
Is there a way to prevent this, or a workaround? It doesn't seem to have a SelectionStart
property, otherwise I could have the polling process save the caret position, get the value, then set it back as a decent workaround.