Results 1 to 3 of 3

Thread: Combo boxes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17

    Question

    Hi there!

    I have 2 Combo boxes using control array, i.e. Combo1(0) and Combo1(1). I have different data in both combo boxes but both of them have the same number of elements.

    The thing is when I select the first element in Combo1(0) I will want the first element of Combo1(1) to appear in Combo1(1) and so on for the rest of the elements.

    how can this be done??

    Regards!!

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    Assume you have set both ComboBox Sort properties to False
    Code:
    Private Sub Combo_Click(Index As Integer)
    if Index = 0 then Combo(1).ListIndex = Combo(0).ListIndex
    End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    17
    Thanks a lot, Chris!!

    It works!!

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