Solved

Listview Icon OffSet problem with Large Icons

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 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

22 Experts available now in Live!

Get 1:1 Help Now