?
Solved

file listview

Posted on 1999-01-19
3
Medium Priority
?
252 Views
Last Modified: 2011-09-20
how do i make an explorer-type file listbox using listview?
I need a listview that looks like explorer set in list mode.
I tried doing it using a imagelist for the icons, but I can't get the icons to display in smallicons or list mode, and it selects an extra white line with the filename
0
Comment
Question by:daveander
[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
3 Comments
 

Expert Comment

by:kianwei
ID: 1469452
please show me your code, thanks
0
 
LVL 4

Expert Comment

by:mcix
ID: 1469453
0
 
LVL 2

Accepted Solution

by:
FlorisMK earned 120 total points
ID: 1469454
Create a ListView on a form.
Give it the desired number of columns in design view (say 3).
Add two ImageLists, one for large icons (32x32), one for small icons (16x16).
Add desired icons (an image with index 1 in both imagelists is assumed here).
Attach the image lists to the listview.

Add code like this to the Form_Load

Dim l as ListItem
With ListView1.ListItems
    Set l = .Add(,,"Item1",1,1)
    l.SubItems(1) = "Info in second column"
    l.SubItems(2) = "Info in third column"
    ' And again for each item to add
End With

Manipulate the .View property to go to list view.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

765 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