Multi column Combo Boxes?

Is there a Multi column Combo Boxes? and if so how do I use it?

Example:
1   Person
2   Place
3   Thing

Column 1 would have a width of 0 so the user would not see it but it would be sotred. The reason I can't use the column index is becouse the numbers sometimes skip.

   - Marc
LVL 1
MarcGraffAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

malharoneCommented:
checkout http://www.codeproject.com/cs/miscctrl/dropdowntree.asp ...
or you can have a list view, which on mouse over, expands it's height and on mouse out, shrinks down.
Mikal613Commented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MarcGraffAuthor Commented:
Mikal613: That is exactly what I want but it will not open the sln file. I tryed to put it together without it but with no success.

   - Marc
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Mikal613Commented:
did you make an account?
MarcGraffAuthor Commented:
Yes and downloaded the file. It says the sln file is invalid.

   - Marc
MarcGraffAuthor Commented:
Is there some .NET update?

   - Marc
Mikal613Commented:
try doing it again

are you using vs 2002 or 2003
MarcGraffAuthor Commented:
2002
MarcGraffAuthor Commented:
Same thing "The selected filr is not a valid Visual Studio solution file"

   - Marc
Mikal613Commented:
its only for 2003 sorry
Mikal613Commented:
its cheaper to upgrade ($29) then buy a 3rd party
MarcGraffAuthor Commented:
Yeah that expired 9/30/2003

   - Marc
Bob LearnedCommented:
What is the reason for wanting a combo box, over a data grid (I can probably guess, but just curious)?
MarcGraffAuthor Commented:
Space on the form.

   - Marc
Bob LearnedCommented:
I got the solution to open at http://www.codeproject.com/vb/net/multicolumncombo.asp (VB.NET 2003).
Mikal613Commented:
you could append all the data

Person & " : " &  Place & " : " &  Thing

ANd then put a label on top of the Combo

Person Place Thing

And that will save space
Bob LearnedCommented:
You could also use ControlChars.Tab between to line them up in columns.
MarcGraffAuthor Commented:
TheLearnedOne:
I unfortunetly only have .NET 2002

Mikal613:
The ID field can not be seen.


Could I make a class that stores the ID and Value and refer to that some how?

   - Marc
MarcGraffAuthor Commented:
What is "ComboWithID"?

   - Marc
MarcGraffAuthor Commented:
Never mind... .NET 2003
Mikal613Commented:
never minded
Bob LearnedCommented:
I have, in the past, taken a solution meant for 2003, and recreated it in 2002, and the code worked.  I just created a new solution in 2002, and added the modules to that solution, and it ran.
MarcGraffAuthor Commented:

TheLearnedOne:
I have atempted that. Mikal613 suggested the same code. I tryed to put it together in 2002 but with no success. I think I am missing References.

Form1.vb(140): Name 'i' is not declared.
Name 'Border3DStyle' is not declared.
Name 'ControlPaint' is not declared.
Name 'DrawItemState' is not declared.
Name 'Keys' is not declared.
Name 'StringTrimming' is not declared.
Type 'Color' is not defined.
Type 'CreateParams' is not defined.
Type 'Font' is not defined.
Type 'Graphics' is not defined.
Type 'ImageList' is not defined.
Type 'Keys' is not defined.
Type 'PaintEventArgs' is not defined.
Type 'Pen' is not defined.
Type 'Point' is not defined.
Type 'Rectangle' is not defined.
Type 'RectangleF' is not defined.
Type 'SolidBrush' is not defined.
Type 'StringFormat' is not defined.


   - Marc
Bob LearnedCommented:
More than like it is a reference to System.Windows.Forms (that is where Border3DStyle is defined).
MarcGraffAuthor Commented:
Yeah I have System.Windows.Forms refrenced :(

   - Marc
MarcGraffAuthor Commented:
But I din't import it!

   - Marc
Bob LearnedCommented:
SolidBrush is in System.Drawing.
Bob LearnedCommented:
What modules are you having a problem with?
MarcGraffAuthor Commented:
BaseComboBox and ListItemObjects

   - Marc
MarcGraffAuthor Commented:
X out ListItemObjects got that one working!

   - Marc
Bob LearnedCommented:
What do you have left to figure out?
MarcGraffAuthor Commented:
Type 'ImageList' is not defined.
Type 'CreateParams' is not defined.
Name 'DrawItemState' is not declared.
Type 'Keys' is not defined.
Name 'Keys' is not declared.

   - Marc
Bob LearnedCommented:
System.Windows.Forms.  Not sure about Keys.
MarcGraffAuthor Commented:
Ok it has compiled into the DLL and I have refrenced it on my app.

How do I get it onto my form?
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20824091.html

   - Marc
MarcGraffAuthor Commented:
Thanks so much!

   - Marc
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.