Combo box headers and Tabs

ADawn
ADawn used Ask the Experts™
on
Hello,

VB6 ADO

I'd like to use the (standard) combo box control. I'd like to have a header (Equipment Name, Equipment Model, etc) and have each item spaced evenly across each header.

Thanks,

ADawn
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
You better use the combobox found in the MSForms2 component.

Commented:
I belive that there is a confusion here.  The combo box will present only one column of information.  When you talk about headers for diferent values, evenly space, it seems that you are talking about a dataGrid, or maybe a FlexGrid.  Can you specify.
Commented:
Hello ADawn !

1. If you want to use a standard combobox, you have only one visible column and you have to deal with spaces, tabs or other ugly things.

2. If you use the combobox of MSForms2 you have several columns. I used this approach at former times until one day i read at a microsoft page. They say that MSForms2 is only for vba and that they don't guarantee correct behaviour with vb (or something similar).

3. If your requirements do fit:
a. MSFlexGrid
b. DataGrid
c. Apex TrueDBGrid (to purchase)
d. .....

4. I decided to develop an own OCX what does this job. I took a ListView for the dropdown-window, a Commmand button and a Textbox. All you have to learn is how to Create your own Controls (see MSDN), and how to SubClass Windows (i would recommend "Subclassing & Hooking" by Stephen Teilhet (O'Reily).

regards

v.k.

Author

Commented:
I'm going to go with this answer (suggestions) due to the extent of explanation. Thanks to the others for thier input.

ADawn

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial