Display more than 1 column in a ComboBox


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Display more than 1 column in a ComboBox

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Display more than 1 column in a ComboBox

    [Originally posted by Mark]

    Hi,

    Can this be done in VB using the normal combo box ?


  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Display more than 1 column in a ComboBox

    [Originally posted by Kumar]

    Hi MARK,
    ˙ Yes U can, try the below code. But in that it will not display as column but u can view multiple columns

    eg:
    ˙ combo1.additem "Column1 - Column2 - Column3"

    with regards.,
    Kumar.K

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Display more than 1 column in a ComboBox

    [Originally posted by Nick Dawkes]

    There is a way by using an API call to set tab offsets in a list box (I think by default they are set at 8 * average character width). I can't remember the exact call.

    You can then add multiple fields as
    Combo1.additem fld1 + vbtab + fld2 + vbtab + fld3
    and they are set in columns.

  4. #4
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Display more than 1 column in a ComboBox

    [Originally posted by Martin Scheepers]

    the vbtab doesnt work to well... I would like the combo box to work like an access combo box with bound columns etc...any ideas?

  5. #5
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:Display more than 1 column in a ComboBox

    [Originally posted by Nick Dawkes]

    Use a Grid

  6. #6
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Display more than 1 column in a ComboBox

    [Originally posted by rudy]

    You can use MS.Form 2.0 combobox control, this control allow you use combobox˙ with more than 1 column.
    For detail, please see Form 2.0 Help on VB Help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center