Can't find ImageList on ListView control properties

willjones

Registered User.
Local time
Today, 17:51
Joined
Mar 24, 2007
Messages
13
I have a Microsoft ListView Control 6.0 (SP4) and a Microsoft ImageList Control 6.0 (SP4). When I put the ImageList control on my form and load it with some images. Then I double click the ListView control and click on Image Lists. Non of the drop down lists display my Image List control that is also defined on my form!

I tried the same thing with Microsoft ListView Control, version 5.0 (SP2) and Microsoft ImageList Control, version 5.0 (SP2) and I do see the imageList in my drop down lists when I click on the Image Lists tab for the list view control.

What's going on here? Why are the newer controls in-compatible with each other?

I would just use the old ones and go on, but I wanted to use the Column Header Icons which isn't supported on the older listview control.

Please help me get this going. Is there an mdb with an example of this I can download from somewhere?

Thanks...
 
You should be able to initialize the activex imagelist using some code... here is a quick demo...
 

Attachments

Column headers

Hmm, Okay, Actually the reason I wanted to do this was to try and populate the column headers with an image, not the actual rows. For example when you click Department once it sorts ascending, and when you click a second time it sorts descending. What if when you click it and it sorts ascending an UP arrow appears next to the Word Department and when you click a second time it would switch to a DOWN arrow. Then if you click on Phone the arrow would disappear from the Department column header and appear next to Phone pointing up indicating you were sorting the items in that column ascending. I can manipulate the text in the header and make it show ^ or v after the column header on a column click event, but I'd rather show an image. This is really what I was hoping to achieve... thanks for the example though it's still informative.
 
The example I just posted in this thread may provide what you are looking for. Let me know either way if this helps.

Scott
 
Column header icons

Thankyou... Yes, this is what I was talking about. This mdb was very helpful. This may not be possible, but I wonder if the image could appear to the right of the column header text instead of to the left...

Thanks again,
-Will
 
I'm sure it is possible, but probably not without some advanced knowledge of API calls, etc... I have never experimented, so if you find something else, I would be happy to see your solution. Good luck,

Scott
 

Users who are viewing this thread

Back
Top Bottom