This is a migrated thread and some comments may be shown as answers.

Detecting when editing is underway

0 Answers 19 Views
NumericUpDown
This is a migrated thread and some comments may be shown as answers.
Jules
Top achievements
Rank 1
Jules asked on 21 Apr 2016, 03:55 PM

My use case requires programmatically detecting when a NumericUpDown control is currently being edited, so that we can disallow the user from clicking a button before they've committed their value.

Currently I'm using the Got/LostKeyboardFocus events as well as the setter of the value that the NUD is bound to, but there are many cases in which this approach is insufficient. Ideally, the NUD would have a property I could bind to that would indicate when the NUD is being edited but I haven't found any such thing.

Thanks in advance!

No answers yet. Maybe you can help?

Tags
NumericUpDown
Asked by
Jules
Top achievements
Rank 1
Share this question
or