Coding a Control Set

Hi,

I have a bunch on labels that I created a control set for called lbl3 so I could change the color of the labels easily. But now I want to code the Mouse Down event for each label, and I don’t know how I can do it. I tried using select case, but I can’t get the right code.

[code]Select Case lbl3 //Something

Case “lbl3(0)”

//Do something

Case “lbl3(1)”

//Do something else

End Select.[/code]

How do I write this so I can assign different code to each of the lbl3s?

Any help would be appreciated.

Jim.

In the MouseDown event, you have an additional parameter called Index. Use that to identify the label.

Select Case Index
Case 0
    // do something
Case 1
    // do something else
End

Thanks Tim. That was just what I was looking for. Thanks you very much. I appreciate it. :slight_smile: