Solved

Listview Icon OffSet problem with Large Icons

Posted on 2000-04-05
2
301 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 142

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now