StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



NumericUpDown and Read-OnlyExpand / Collapse
Author
Message
Posted 07/31/2008 3:50:04 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 5:29:52 AM
Posts: 177, Visits: 430
Hi,

If a NumericUpDown is set to read-only, then you can't type a value into the control but the arrow keys and spinner controls still allow values to be entered. I know the intercepting of the arrows keys can be turned off but I can't see a way of removing the spinner.

On a similiar note, is there a way to make a CheckBox read only?

Thanks in advance,

Aaron

Post #18240
Posted 08/01/2008 9:25:37 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
One little trick on the NumericUpDown is to set the Increment to 0 when in "read-only" mode and it will prevent the value from being changed.  A checkbox, on the other hand, is a little more difficult.  You can either make it disabled (probably not desirable) or handle the CheckChanged event and set the value back.
Post #18258
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:54pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.