Thread: Module Access
View Single Post
Old Apr 2nd, 2005, 9:54 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
You need to expose label1 in the usercontrol.
Put this in the UserControl:
Public Property Get MyLabel() As Object
Set MyLabel = UserControl.Label1
End Property
Public Property Set MyLabel(ByRef NewLabel As Label)
Set UserControl.Label1 = NewLabel
End Property
Then you can do
UserControl1.MyLabel.Caption = "hello"
Rory is offline   Reply With Quote