Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listview problems

Status
Not open for further replies.

Luix

Technical User
Jan 28, 2001
7
ES
Does anyone know why I get an error when the following line is executed?

ListView7.Icons = ImageList6

trying to set the icons property of a listview control to an existing imagelist control. Both are referenced as Microsoft Windows common controls 6.0 (SP4).

According with Access help and MSDN, it should work, but I get an error "35610: Invalid Object".

Please, help...It's driving me crazy.
 
Try this...

set listview7.ImageList = imagelist6
Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
You may be running into a problem with two different versions of ImageLists and ListViews.

There is an ImageList and a ListView in Windows Common Controls 5.0, and their is one each in Common Controls 6.0

If you have both components registered with the project, then its possible that your running into a version incompatabililty. You would need to remove one or the other, so that your using the ImageList and ListView from the same set of controls. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top