Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read only textboxes, cbo's etc.
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00954174
Message ID:
00954442
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform