Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock controls
Message
De
15/02/2001 09:44:49
 
 
À
15/02/2001 08:41:33
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00476226
Message ID:
00476256
Vues:
21
>I have a form that displays data using textbox, combobox, option button and checkbox. I want the controls to be locked until the user selected the "Edit" option from a toolbar. The combobox and textbox have the Locked property so the user can not change the value of the controls. However, for a optionbutton and checkbox the only property avaiable to lock a control in the Enabled property (as far as I can tell) and it is grays out the control, which is not pleasing to the eye.
>
>If there another approach I can take to locking down the optionbutton and checkbox without setting enabled to false?
>
>Thanks

You could put code on the gotfocus event of these controls and depending on the edit mode of the form display a message and set focus to something else.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform