Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read only textboxes, cbo's etc.
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00954174
Message ID:
00954442
Views:
23
Darrell,

>I am looking for ways to have the textboxes and cbo, chkbox etc to be readonly on a windows form except if a specific situation exists. I think that it has something to do with the ImmSecurityBase.SetAccessFull. I was trying to find somewhere in the sample code where it was being used but could not find anything and the description for it in the chm seems a little vague.

Can you give me more information on the condition and the timing of the check you're performing so I can best advise you? Note that MM .NET controls automatically disable when bound to an empty DataSet. If you want to turn off this behavior, set the control's AutoSetEnabled property to false. You can programmatically set a control to read-only by calling its SetAccessReadOnly() method, or enable it by calling its SetAccessFull() method.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform