Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-13
5
Medium Priority
?
987 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 90 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 90 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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

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 …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

971 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