Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Listview Icon OffSet problem with Large Icons

Posted on 2000-04-05
2
Medium Priority
?
309 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 400 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses

721 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