all groups > vb.net controls > july 2005 >
You're in the

vb.net controls

group:

ListViewItem Size


ListViewItem Size Lespaul36
7/12/2005 6:05:03 PM
vb.net controls:
I am working on a custom listview sort of like the one from Microsofts
fotovision. I can do the drawing of the items, but the item bounds are to
small..how do I correct this?

TIA

Re: ListViewItem Size Tom John
7/13/2005 1:49:15 PM
On Tue, 12 Jul 2005 18:05:03 -0700, "Lespaul36" <lespaul36@none.net>
[quoted text, click to view]

You have to set the DrawMode of the control to OwnerDrawVariable and
then override the Item OnMeasureItem method.

Hope this helps

Re: ListViewItem Size Lespaul36
7/15/2005 8:20:18 PM
What I ended up doing, since the imagelist looses the alpha I use the
imagesize property to control the size and draw the images by hand.
[quoted text, click to view]

AddThis Social Bookmark Button