Results 1 to 5 of 5

Thread: listbox arrays

  1. #1

    Thread Starter
    Lively Member jk9694's Avatar
    Join Date
    Dec 2001
    Posts
    78

    Question listbox arrays

    I'm trying to set up an output array in a project. that's not the prob, im trying to figure out how to make all 9 listboxes scroll down at the same time and keep the focus across all 9 also, it possible?? or should i take a different approach to this?

    All help is greatly appreciated.

    Matt

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Hi
    More information please!!

    Are u looking for the TopIndex property? And what do u mean by all listboxes keeping focus?
    regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Only one control can have the focus at the time. But you can scroll all controls using the following code:
    VB Code:
    1. Private Sub List1_Scroll(Index As Integer)
    2.     Static blnBusy As Boolean
    3.     If blnBusy Then
    4.         Exit Sub
    5.     End If
    6.     blnBusy = True
    7.     For n = 0 To 8
    8.         List1(n).TopIndex = List1(Index).TopIndex
    9.     Next
    10.     blnBusy = False
    11. End Sub
    Best regards

  4. #4

    Thread Starter
    Lively Member jk9694's Avatar
    Join Date
    Dec 2001
    Posts
    78
    thanks for the help all. I'm trying to get nine list boxes that are side by side to all scroll down at the same time, i will try the examples and get back to you

    thanks again

  5. #5

    Thread Starter
    Lively Member jk9694's Avatar
    Join Date
    Dec 2001
    Posts
    78
    Thanks a million for the snippet of code......Works great...

    Matt

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