Results 1 to 4 of 4

Thread: adding combobox item to list box

  1. #1

    Thread Starter
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127

    adding combobox item to list box

    i want to add a combo box item(when the user clicks it)to display in a listbox....i have tried a few things w/ the additem code and have not yet found anythnig that worked .how would i do this
    I'm a beginner.
    ------------------------------------------------
    Your impossible ego ***** is like a
    Megalomaniacal tab on my tongue
    You *****in' touch me I will rip you apart


  2. #2
    Why not just listboxname.AddItem comboboxname.Text?

  3. #3
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Maybe you can try this:

    VB Code:
    1. Private Sub Combo1_Click()
    2. List1.AddItem Combo1.List(Combo1.ListIndex)
    3. End Sub
    <removed by admin>

  4. #4

    Thread Starter
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127
    o man i did that to...just backwords ...thanx
    I'm a beginner.
    ------------------------------------------------
    Your impossible ego ***** is like a
    Megalomaniacal tab on my tongue
    You *****in' touch me I will rip you apart


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