Solved

Mutli Column Combo Boxes

Posted on 2002-03-05
9
152 Views
Last Modified: 2010-05-02
Does anyone know how to create a multicolumn combobox.  MSDN tells you to change the column property. Yet the standard combobox in the toolbox doen't have a cloumn property.
0
Comment
Question by:GMorgan
9 Comments
 
LVL 1

Expert Comment

by:S2
ID: 6842696
A listbox has columns a combobox doesn't, you can create your own combo box control with a button that has the combobox drop down arrow a textbox and a listbox with multiple columns, write events for the conrtol and there you go a combobox with multiple columns.
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6842854
You can try using the combobox found in the MS Forms 2.0 library, but that one has restricted use (any machine where it's used must have an MS Office license.)
0
 
LVL 3

Expert Comment

by:Bahnass
ID: 6843017
May be I misunderstood Q
Never mind if not what U ment

but U can Sent tab chr to have combo items like

combo1.additem str1 & chr(vbkeytab) & str2 & chr(vbkeytab) & str3

Item1      Price1        kjgh kjh jk
Item2      Price2        bla bla
Item3      Price3        hjkghjkgjkg

by some API U can set tab width
0
 

Author Comment

by:GMorgan
ID: 6843161
Thanks for the help with the list box but I'm still a little unsure of how to enter the data into each column...I don't want to use tabs though...cheers
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 4

Accepted Solution

by:
escheider earned 10 total points
ID: 6843339
Does it have to be a list box?  If not, use the Listview, which allows you to set up the desired columns.  If you add the component 'Microsoft Windows Common Controls' it will be available to your project
0
 
LVL 4

Expert Comment

by:escheider
ID: 6843343
Just realized you wanted a combo box.  What type of data are you trying to display to the user?
0
 

Author Comment

by:GMorgan
ID: 6843958
I'm trying to display a list of mp3's with their tag information.  
0
 

Author Comment

by:GMorgan
ID: 6843979
I'm trying to display a list of mp3's with their tag information.  
0
 
LVL 4

Expert Comment

by:escheider
ID: 6845063
Id use a listview..be perfect for what you're trying to do.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now