>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement