Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

file listview

Posted on 1999-01-19
3
Medium Priority
?
257 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

Industry Leaders: 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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

597 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