Results 1 to 3 of 3

Thread: listbox mousedown event

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    Talking 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 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

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Make the array of all listboxes

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width