Jump to content

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.

CODE
$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)

Next

WEnd

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...