Solved

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

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

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…

895 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

17 Experts available now in Live!

Get 1:1 Help Now