Control to Label Relationship

gray

Registered User.
Local time
Today, 14:49
Joined
Mar 19, 2007
Messages
578
Hi

To reference a label 'owned' by a control one uses the notation below:-

Control_Name.Controls.Item(0).Caption (caption being an example of a useful reference)

But, how is it done the other way? So, if the label is known how is the control it (potentially) belongs to discovered?

Anyone know the syntax please?

Thanks
 
Aha... found it... obvious really....

Label_Name.Parent.Name

cheers
 

Users who are viewing this thread

Back
Top Bottom