-
listbox mousedown event
lol, pain in the backside!! i got this event...
Private Sub List1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
how would i get it so it did it for all of my 4 listboxes? without copying and pasting the event over and over cos thats newbiesish :D btw, ive tried
Private Sub ListBox_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) and i thought that'd work as ive done it with private sub form_mousedown, is indeed very confusing :D
-
Make the array of all listboxes
-
Put whatever is in your MouseDown event in a sub routine or function, and call the sub or function from the MouseDown event.
That way, when you need to change something, all you have to do is go to one place.