Solved

Listview Icon OffSet problem with Large Icons

Posted on 2000-04-05
2
307 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
[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 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

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

623 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