Click here to Skip to main content
12,294,475 members (65,720 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
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 25-Jul-10 23:51pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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!
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 Jul 2010
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100