dorko72
12-29-2003, 04:45 PM
Hello all,
I have a series or label controls i manully created in my form. I have a routine which needs to change the backcolor of a given label. The routine receives the control name as a variable. How can i make it so the routine understand the variable name is actually the label control?
Public Sub UpdateMap(ByVal intstatusCode As Integer, ByVal strStationName As String)
Debug.WriteLine(strStationName) 'this is the label control name
Me."strStationName".BackColor = Color.Aquamarine
End Sub
Thanks!
I have a series or label controls i manully created in my form. I have a routine which needs to change the backcolor of a given label. The routine receives the control name as a variable. How can i make it so the routine understand the variable name is actually the label control?
Public Sub UpdateMap(ByVal intstatusCode As Integer, ByVal strStationName As String)
Debug.WriteLine(strStationName) 'this is the label control name
Me."strStationName".BackColor = Color.Aquamarine
End Sub
Thanks!