Solved

VB6 ListView Control - Can't see last item in list and scrollbar hasn't yet appeared

Posted on 2004-04-13
5
959 Views
Last Modified: 2013-12-25
I am using a listview control in VB6.  I add several items to my control based on how many files are in a directory.  A scrollbar appears when more items are loaded into the grid than can be viewed at one time, however there is a point when the bottom item is added and can't be seen and no scrollbar appears.  So, if there happens to be that specific number of files in the directory, then the last item can't be seen.  Has anyone else run into this?  Does anyone have any suggestions?  Thanks.
0
Comment
Question by:ChuckS76
5 Comments
 
LVL 27

Accepted Solution

by:
Dabas earned 30 total points
ID: 10817314
Hi ChuckS76:
I have quite a lot of experience with ListViews and do not remember this ever happening.

Is your listview inside a frame, but maybe its height is larger than the frame's height?


Dabas
0
 
LVL 9

Assisted Solution

by:p_sie
p_sie earned 30 total points
ID: 10821730
Do you have the latest Service Pack of Vb installed?
0
 

Author Comment

by:ChuckS76
ID: 10824285
Well, it's not inside a frame.  I think I have the latest service pack - SP5.  The listview sits on a form called frmReports and that form sits on an MDI form.  On Form_Resize of frmReports the listview is first set to the MDI.scaleheight and then it is set to the height of frmReports.
0
 

Author Comment

by:ChuckS76
ID: 10824679
There is a statusbar at the bottom of the MDI form and I think the bottom of the listview is getting hidden behind it.  I subtracted the height of the statusbar from the listview on resize and that seems to have fixed the issue.  Thanks for trying to help me out.  I'll go ahead and split my points between you two.
0
 
LVL 1

Expert Comment

by:daniellyh
ID: 11194066
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Extract Data and filename Macro 20 99
using Access 8 52
MS Date Picker 64 bit 32 bit issue 12 43
Spell Check in VB6 13 52
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…
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 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…

760 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

23 Experts available now in Live!

Get 1:1 Help Now