Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21205

[RESOLVED] How do I reference a control in a UC from the Parent

$
0
0
In my Parent Form code I want to reference a controls that is in the User Control.

Example

In UC I have a Label control called "Label"

I would like to simply reference that label in my Form code like this

UC1.Label.Caption = "Text"

or

UserControl.Label.Caption = "Text"

However, then name doesn't appear in the properties of UC1 nor does it appear in the properties of UserControl

Viewing all articles
Browse latest Browse all 21205


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>