Jump to content
Sign in to follow this  

How to do ControlListView in Visual Basic 2005

Recommended Posts


I've been using ControlListView to get access to a ListView32 control. It is a part of a window. What I do is to first get a count of the number of list items (by using the GetItemCount command) and then get the text of each item (by using the GetText command). It has worked real well.

I now need to do the same thing, but using Visual Basic 2005 instead of AutoIt. I know this is like doing it the hard way, but there are other issues I couldn't get by with AutoIt. Does anyone know how to do this or get started? Many thanks in advance.

$iCount=ControlListView($tTitle, "", "SysListView321", "GetItemCount")

$iActive = 1

$iTmp = 0

While $iActive

$iCount=ControlListView($tTitle, "", "SysListView321", "GetItemCount")

For $iRow = $iTmp to $iCount

$iTime = ControlListView($tTitle, "", "SysListView321", "GetText", $iRow, 0)



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.