une


Can you lock a label like you can a toggleButton I have some code as follows;

If toggleButton1.value = True Then
togglebutton2.locked = True
Else
togglebutton2.locked = False
End If

But I also want to temporarily lock some clickable labels, but there is no ".locked" function for labels.
How do I stop a label's click action from being allowable under certain circumstances
Thanks.



Re: Locking clickable labels

Andy Pope


Hi,

You can not lock a Label control.

Either use the Enabled property, which does effect the visual appearence of the label.
Or add some test code in the Click event of the label.