Solved

List Box that allows icons without an imagelist

Posted on 2000-05-16
6
151 Views
Last Modified: 2010-05-02
How can I get icons in a list box without using image lists? What control can I use. I want to display something similar to the standard Windows Browse Dialog.
0
Comment
Question by:bubbles
[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
6 Comments
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2815549
Here's free code to get owner-drawn comboboxes..

http://www.vbaccelerator.com/codelib/odcbolst/article.htm
0
 

Expert Comment

by:VBDude
ID: 2815745
Um, AFAIK you can't. What is the reason why you don't want to use image lists?
0
 
LVL 4

Expert Comment

by:dreamvb
ID: 2816249
I Don't Think you can Do this sort of Thing in Visual Basic Without tons of Lines of API Code qhich won't reay be worth it The only other hing you can jeck out is

Http://www.activex.com
 May be there will be a control there
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 28

Expert Comment

by:Ark
ID: 2816544
Hi
>How can I get icons in a list box without using image lists? <
How can you get icons in a list box with using image lists?
Plz, clarify your question - what do you want (start point - end point)
Cheers
0
 
LVL 7

Expert Comment

by:Vbmaster
ID: 2816778
Perhaps he doesn't have any use of a Toolbar/Listview and feels like it's a waste of a 1Mb ocx to get only Imagelists. If so, you (bubbles) can find a replacement for the imagelist at vbaccelerator.com, using some simple API's.
0
 

Accepted Solution

by:
VBDude earned 20 total points
ID: 2817259
Now that I think of it, you can assign your icons by code if you want. Try placing the icons in a resource file then load them and assign them as you (bubbles) add items to your list view. You'll likely need a small (16x16 generally) and a large (32x32 generally) copy of each.

HTH,
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

739 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