Solved

What control shows file icons

Posted on 2008-09-29
4
148 Views
Last Modified: 2010-05-03
Which vb control shows the file icons in a listbox?
0
Comment
Question by:isnoend2001
[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
  • 2
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22600049
is it vb6 or vb.net?
0
 

Author Comment

by:isnoend2001
ID: 22600136
vb6
0
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 22600212
If you want graphics in your LISTBOX then you need to ownerdraw it:
http://www.vbaccelerator.com/home/vb/Code/Controls/Combo_and_List_Boxes/Owner_Draw_Combo_and_List_Box/article.asp

If you want to use the default controls then use either the ListView or the TreeView:
ListView: http://msdn.microsoft.com/en-us/library/aa733652(VS.60).aspx
TreeView: http://msdn.microsoft.com/en-us/library/aa733652(VS.60).aspx

0
 

Author Closing Comment

by:isnoend2001
ID: 31501331
Thank you
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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