I have a listbox that I am using to display thumbnails of images.
Before moving part of my code to a thread, it displayed fine after a
short initial apparent freeze. After moving it to a thread, it fills
the list without the apparent freeze, but once it's finished, things are
a little out of place in some of the rows. This is especially
noticeable when using a grid in the ListBox. The only ways I know to
"refresh" the appearance of a ListBox is to use InvalidateCell or to set
each row in the ListBox to selected and then to deselect, thereby
forcing a redraw.
InvalidateCell doesn't seem to be doing the job here. Selecting then
deselecting is, but doesn't seem very efficient. Is there another way?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|