Solved

listview control

Posted on 2000-03-21
3
438 Views
Last Modified: 2008-03-06
Hi, I'm using vb6,  I would to ask if the listview control is a property similar to the "toprow" property of the grid control?  Because I want to make an specific item to be show within the listview with scrolldown the listview manually.

Thanks!
0
Comment
Question by:chuyan
3 Comments
 

Expert Comment

by:hkshijun
ID: 2643262
i think you have to check is the item is the region of the listview.
0
 
LVL 27

Expert Comment

by:Ark
ID: 2643474
Hi
ListView control has method GetFirstVisible
Private Sub Command1_Click()
  Text1=Listview1.Getfirstvisible
End Sub
Cheers
0
 
LVL 3

Accepted Solution

by:
paulstamp earned 50 total points
ID: 2643527
In addition to Ark's comment, there is also an EnsureVisible method for a listitem, ie to force an item to be shown you can use :

    ListView1.ListItems("ShowMe").EnsureVisible

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

Suggested Solutions

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 …
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

910 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