Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read only controls NOT
Message
 
À
12/10/2007 11:00:34
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01260567
Message ID:
01260775
Vues:
9
Tony,

>I have a Maint. form, and have set a number of bound controls' properties to Enabled False, and Readonly True, because I don't want the user to changed their values, yet they can change others.
>
>But if I enter the read only control and change the text, and save the record these values get saved.
>
>How come these aren't being honored as read only?

You need to set AutoSetEnabled = false for these controls. Check out the MM .NET Dev Guide topic "Automatically Enabling and Disabling Controls" for details.

Best 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