Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multi column Combo Boxes?

Posted on 2003-12-11
36
Medium Priority
?
1,077 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:MarcGraff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 18
  • 9
  • 8
  • +1
36 Comments
 
LVL 9

Expert Comment

by:malharone
ID: 9922926
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.
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 200 total points
ID: 9923008
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9923792
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
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 48

Expert Comment

by:Mikal613
ID: 9923926
did you make an account?
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9923943
Yes and downloaded the file. It says the sln file is invalid.

   - Marc
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9923957
Is there some .NET update?

   - Marc
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9924001
try doing it again

are you using vs 2002 or 2003
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9924169
2002
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9924192
Same thing "The selected filr is not a valid Visual Studio solution file"

   - Marc
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9924211
its only for 2003 sorry
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9924290
its cheaper to upgrade ($29) then buy a 3rd party
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9925734
Yeah that expired 9/30/2003

   - Marc
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928112
What is the reason for wanting a combo box, over a data grid (I can probably guess, but just curious)?
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928122
Space on the form.

   - Marc
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928147
I got the solution to open at http://www.codeproject.com/vb/net/multicolumncombo.asp (VB.NET 2003).
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9928239
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
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928253
You could also use ControlChars.Tab between to line them up in columns.
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928265
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
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928274
What is "ComboWithID"?

   - Marc
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928283
Never mind... .NET 2003
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9928297
never minded
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928314
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.
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928400

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
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 1800 total points
ID: 9928407
More than like it is a reference to System.Windows.Forms (that is where Border3DStyle is defined).
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928413
Yeah I have System.Windows.Forms refrenced :(

   - Marc
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928423
But I din't import it!

   - Marc
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 1800 total points
ID: 9928428
SolidBrush is in System.Drawing.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928444
What modules are you having a problem with?
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928457
BaseComboBox and ListItemObjects

   - Marc
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928472
X out ListItemObjects got that one working!

   - Marc
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9928482
What do you have left to figure out?
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928495
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
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 1800 total points
ID: 9928515
System.Windows.Forms.  Not sure about Keys.
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928637
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
0
 
LVL 1

Author Comment

by:MarcGraff
ID: 9928738
Thanks so much!

   - Marc
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 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