Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I have a problem when syncronizing my listbox(client) from server. I use a delete all items and add new items from server to the listbox that cause flickering. Syncronization interval is 500milisecond. I can't use databinding because my listbox is customized(image support) and doesnot support data binding. how can i fix this problem? is there any other way for synchronizing?
Posted

1 solution

Maybe you could call the listbox SuspendLayout before, and ResumeLayout after updating the ListBox?
Another thing that could help is not to fully clear the listbox but determine on the background which items have changed, deleted and added and update the listbox itself as less as possible to avoid the flickering.

Good luck!
 
Share this answer
 
Comments
Dwi Prawira 27-Jul-10 23:15pm    
Wow... supsendlayout works great.. thanks..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900