Results 1 to 2 of 2
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    DropDown lists (VB6)

    How do I set up a form similar to the imag below, where the item im focus shows up (in a separate box) at the top of the list box?

    Regards,
    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DropDown lists (VB6)

    The text box at the top is populated by code in the On Click event of the list box below it. Say that the text box is named Text1 and the list box is named List1. The code would look like this:

    Private Sub List1_Click()
    Me.Text1 = Me.List1.List(Me.List1.ListIndex)
    End Sub

Posting Permissions

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