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

Multi column list box in vb

Status
Not open for further replies.

Oliver2003

Technical User
Apr 19, 2003
144
GB
Is it possible to have a Multi column list box - similar to the list box used in ms access.

Is it also possible to add pictures to the list box - I am looking for something similar to the mail list in outlook e.g. where to, from, subject etc is displayed.


Thank You
 
There is an ImageCombo and ImageList control.
Check in PROJECT|COMPONENTS

Multi-column combo? No. Only the non-distributable one from Fm20.dll - if the client has a licensed version on the machine (such as from an MS Office product) then you can reference and use it.

You can similate multi-cols by using
AddItem "Column1 & " " & Column2
but this nevers looks too pretty.

Otherwise, make your own using a FlexGrid or DataGrid or ListView control, and textbox and command button.
 
>There is an ImageCombo and ImageList control.
>Check in PROJECT|COMPONENTS

"Microsoft Common Controls 6.0"
 
I was looking for basically the same thing, and instead, I created a custom control using the MSFlexGrid Control. Note, if you use the MSFlexGrid Control, you'll have to make your own images if you decide to make check boxes (not hard to do, but just a heads up). Unfortunately, at the time I made it, I didn't think about the ListView, and that already has checkboxes built into that.

All in all, I liked the way the MSFlexGrid and my custom control came out better though.
 
Thanks for the replies, i'll give them a try.
 
With the list view control in report view, is it possible to add icons to the SubItems columns and not just the first column?

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top