Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Column Combo-Box

Status
Not open for further replies.

SqueakinSweep

Programmer
Jun 20, 2002
945
GB
Does anyone have any ideas how to go about creating a multi column combo box. At present we have a user control, which works very nicely, but can only display one text value. It would be extremely useful to be able to display further information

eg..typical combo for picking job number, we enter "3" and press enter, and all the jobs beginning with "3" are listed.

330
340
355

what we would really like to see is

330 Job Description for 330
340 Job Secription for 340
355 Job Description for 355

Coming from a Fox background this was relatively easy to achieve before, but this has me stumped.

Any guidance greatly appreciated.


WTrueman
...if it works dont mess with it
 
you should use a listview control in details viewmode instead of combo box. doubtless it'll allocate more space than a combo box but combo box is not a good way for your needs i think.

if further help is needed i may help you.

@li
 
You can add the item to the combobox like this:

combobox1.Items.Add("330 " & vbtab & "Job Description for 330")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top