Hello
I have a userform that is dynamically generating labels. The reason for this is because I have a few thousand labels to generate. I am also attaching a MouseMove event to each dynamically generated label using a its own class.
The class contains this code:
What this will do is whenever the mouse hovers over a label, its caption is changed to an "x".
Now, I would like to reset the caption once the mouse is no longer on the label. How do I go about doing this? Mind you: I don't think looping through all labels and resetting them is feasible because of the sheer number of labels involved.
Thanks!
I have a userform that is dynamically generating labels. The reason for this is because I have a few thousand labels to generate. I am also attaching a MouseMove event to each dynamically generated label using a its own class.
The class contains this code:
Code:
Private Sub m_objlb_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
m_objlb.Caption = "x"
End Sub
Now, I would like to reset the caption once the mouse is no longer on the label. How do I go about doing this? Mind you: I don't think looping through all labels and resetting them is feasible because of the sheer number of labels involved.
Thanks!