InterceptArrowsKeys Property of NumericUpDown Control

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

I set this property to False so the controls will be ReadOnly (when I set
the ReadOnly property to true) but the arrow keys still .increment/decrement
the value in the NumericUpDown control

Any clue?

Samuel
 
Hello Samuel,
I set this property to False so the controls will be ReadOnly (when I
set the ReadOnly property to true) but the arrow keys still
.increment/decrement the value in the NumericUpDown control

Any clue?

I'm not sure why the behavior is that way (I can repro it on my machine).
Another trick is to set the Increment property to 0. That will get the
behavior you're looking for.
 
Good idea

Thank you,
Samuel

Jared Parsons said:
Hello Samuel,


I'm not sure why the behavior is that way (I can repro it on my machine).
Another trick is to set the Increment property to 0. That will get the
behavior you're looking for.
 
Back
Top