List Box Update Issue

Posted by Gaddigesh on Stack Overflow See other posts from Stack Overflow or by Gaddigesh
Published on 2010-04-19T14:02:31Z Indexed on 2010/04/19 14:23 UTC
Read the original article Hit count: 214

Filed under:
|
|

I have a ListBox of constant size 4

I can Add n number of ListBoxItems,Once size exceeds 4 I have enabled scroll bar,

Problem:when scroll is enabled(more than 4 items), whenever i delete last item, there is a white patch in place of deleted Item.

Patch goes off only when I touch the scroll bar.

I tried ListBox.Invalidate(), But no use

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms