Solved

Listview Icon OffSet problem with Large Icons

Posted on 2000-04-05
2
304 Views
Last Modified: 2013-12-25
I am using VB 6.0 and Microsoft Windows Common Controls 6.0.

I load a ListView with large icons but they don't consistently start at the left of the ListView.

In Some cases they are over to the right of the ListView one or two Icon widths.

I have tried it with .Arrange = (lvwAutoLeft and lvwAutoTop)  

lvwAutoNone simply scatters the Icons.

Also as I clear the listview and display new items, the horizontal scrollbar seems to stay, then if I move it to the right a little it disappears as all the items can actually fit in the listview.
0
Comment
Question by:tward
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 2688823
Do you have the SP3 installed?
What is the size of the icons in the ImageList (16/32/48)?
I solved similar problems by doing the following:
..View = lvwReport
..View = lvwIcons
..Arrane = lvwAutoLeft
the last part may be resolved by
..ListItems(1).EnsureVisible

Hope this helps...
0
 
LVL 7

Author Comment

by:tward
ID: 2689211
No, never installed SP3.

Icons are 32.

..View = lvwReport
..View = lvwIcons

seems to do the trick, it even solves the last problem!
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

828 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