S
Serge Wautier
Hi All,
Env.: VS 2008, .NET 2.0, WinForms
I have a listview in Tile mode. Some items have an associated image. Some
don't.
The contents (listview items) is often renewed when user clicks some
controls. When this happens, it sometimes appears that none of the new items
have images. In that case, I would like to get rid of the empty space on the
left of items reserved for images. I tried the following pseudo-code to
temporarily get rid of the image list
list.Items.Clear();FillList();list.LargeImageList= (none of the items has
image) ? null : MyImageList;But it doesn't work: The empty space is still
there. I also try to repaint the control, to no avail.
What can I do?
TIA.
Env.: VS 2008, .NET 2.0, WinForms
I have a listview in Tile mode. Some items have an associated image. Some
don't.
The contents (listview items) is often renewed when user clicks some
controls. When this happens, it sometimes appears that none of the new items
have images. In that case, I would like to get rid of the empty space on the
left of items reserved for images. I tried the following pseudo-code to
temporarily get rid of the image list
list.Items.Clear();FillList();list.LargeImageList= (none of the items has
image) ? null : MyImageList;But it doesn't work: The empty space is still
there. I also try to repaint the control, to no avail.
What can I do?
TIA.