Solved

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

Posted on 2004-04-13
5
967 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

Independent Software Vendors: 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

680 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