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

If toggleButton1.value = True Then
togglebutton2.locked = True
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

Re: Locking clickable labels

Andy Pope


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.