Link to home
Start Free TrialLog in
Avatar of GarySB
GarySB

asked on

Setting NumericUpDown to Read Only has no effect.

I need to keep the NumericUpDown control set to enabled for visual purposes and I have set the readonly property to true.  It still changes the value.  A msgbox appears since I am able to test for the ReadOnly property being true and I exist the ValueChanged procedure, but it still changes the value.  How can I prevent this?
VB Express 2008
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

have a look at http://www.emoreau.com/Entries/Articles/2005/07/Colors-of-disabled-controls.aspx.

I have overwritten many controls (but not the NumericUpDown) to set the wanted colors when controls are disabled.
Avatar of GarySB
GarySB

ASKER

Thank You, but I was not able to apply it.  Unless a reasonable amount of code can be found I will have to change my contorls to a label which I wanted to avoid.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GarySB

ASKER

It Works Great!!! Thank You