Click to See Complete Forum and Search --> : ListView


Rouven Thimm
December 12th, 1999, 11:35 AM
Hi,
I am currently working with a listview to display a number of recordsets from a querydef. This querydef contains a field that identifies a recordset as special, if this is set to true I want to mark this entry line in the listview in red. So what I do is declare a variable of type ListItem and a variable of ListSubItem.
I set up a new element in the listview with

set LI = ListView1.ListItems.Add(,,"Text")



And now I want to put the subitems onto the ListSubItem-Variable so that I can set the ForeColor-Property:

set SI = LI.ListSubItems.Add (...)



Whatever I tried, my Visual Studio 6 (german, no service pack yet) returns the error message 'Property not found' for 'ListSubItems' - what am I doing wrong or what is my VS doing wrong ?

Thanks for any help,

Rouven

Rouven Thimm
December 29th, 1999, 02:39 PM
Just if anybody is interested:
I was still using several groups of controls, which included Windows Common Controls 5.0 (SP2) as well as Windows Common Controls 6.0.
But the Controls in my application were of the 5.0-type, so far without my knowledge, but now I removed and replaced them and all the commands described in the MSDN-Libraries work...