Home All Groups Group Topic Archive Search About

InterceptArrowsKeys Property of NumericUpDown Control

Author
28 Jun 2006 8:55 PM
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

Author
28 Jun 2006 9:05 PM
Jared Parsons
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. 

--
Jared Parsons [MSFT]
jared***@online.microsoft.com
Author
28 Jun 2006 9:21 PM
Samuel Shulman
Good idea

Thank you,
Samuel

Show quoteHide quote
"Jared Parsons" <jared***@online.microsoft.com> wrote in message
news:61f143b1b548c868d30a0fa6ed@msnews.microsoft.com...
> 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.
> --
> Jared Parsons [MSFT]
> jared***@online.microsoft.com
>
>