Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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 at 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
0 Sergey Alexandrovich Kryukov 531
1 OriginalGriff 334
2 DamithSL 235
3 Maciej Los 170
4 Bruno Sprecher 130
0 DamithSL 95
1 OriginalGriff 65
2 Gopu Raj 30
3 Mahsa Hassankashi 25
4 Raul Iloc 25


Advertise | Privacy | Mobile
Web04 | 2.8.141030.1 | Last Updated 26 Jul 2010
Copyright © CodeProject, 1999-2014
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