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

x
?
Solved

listview control

Posted on 2000-03-21
3
Medium Priority
?
448 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 28

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 200 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
Suggested Courses

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