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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple columns in a combo box?

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
can i have two columns in a combo box in vb.net?
for instance i want to show the information for two fields in a combo box
is that possible????
 
No. What I have done in the past was create a new class, inherit from the combobox, make it an OwnerDraw control, and and draw strings, line, rectangles, etc. for both the value member and display member.
 
I downloaded the vbresourcekit and installed c1componentone for .net. It has a multicolumn combobox. its far from perfect (it doesn't work in windows98, don't ask why) but it'll do.

Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
thanks christiaan
i've downloaded that too but haven't installed it yet
so i guess i'll do it now
thanks again
 
Try filling the combo box using a query. The query would concatonate two fields into one, thus showing two fields. example of query field equation =lastname&',"&lastname
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top