Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
QuestionListBox with LARGE Rows Pin
Sukhjinder_K19-Jul-07 2:15
Sukhjinder_K19-Jul-07 2:15 
AnswerRe: ListBox with LARGE Rows Pin
Luc Pattyn19-Jul-07 2:26
sitebuilderLuc Pattyn19-Jul-07 2:26 
GeneralRe: ListBox with LARGE Rows Pin
Sukhjinder_K19-Jul-07 2:28
Sukhjinder_K19-Jul-07 2:28 
QuestionHttpWebResponse Pin
nasambur19-Jul-07 2:12
nasambur19-Jul-07 2:12 
QuestionControl updating is slow Pin
Geert van Horrik19-Jul-07 2:05
Geert van Horrik19-Jul-07 2:05 
AnswerRe: Control updating is slow Pin
Martin#19-Jul-07 2:14
Martin#19-Jul-07 2:14 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 2:26
Geert van Horrik19-Jul-07 2:26 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 2:31
sitebuilderLuc Pattyn19-Jul-07 2:31 
Hi,

when adding a lot of items to a ListBox, ListView, ... Control performance gets
improved by:
either adding several items at once (AddRange)
or (much better) to temporarily disable the visual update (with Control.SuspendLayout and Control.ResumeLayout).

A good splash screen lets the initialization proceed in the background, and disappears
when initialization is done (possibly with a minimum delay enforced, so the user can
read and enjoy the splash).

BTW obviously you must obey the "no cross-thread" rule: controls should be
manipulated only by the thread that created them.

Smile | :)




GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 2:48
Geert van Horrik19-Jul-07 2:48 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:04
Martin#19-Jul-07 3:04 
GeneralRe: Control updating is slow Pin
Luc Pattyn19-Jul-07 3:20
sitebuilderLuc Pattyn19-Jul-07 3:20 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:22
Geert van Horrik19-Jul-07 3:22 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:24
Martin#19-Jul-07 3:24 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:28
Geert van Horrik19-Jul-07 3:28 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 3:38
Martin#19-Jul-07 3:38 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 3:39
Geert van Horrik19-Jul-07 3:39 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 4:01
Geert van Horrik19-Jul-07 4:01 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:13
Martin#19-Jul-07 4:13 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 4:44
Martin#19-Jul-07 4:44 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 5:06
Geert van Horrik19-Jul-07 5:06 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 7:02
Martin#19-Jul-07 7:02 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:18
Geert van Horrik19-Jul-07 21:18 
GeneralRe: Control updating is slow Pin
Martin#19-Jul-07 21:23
Martin#19-Jul-07 21:23 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:35
Geert van Horrik19-Jul-07 21:35 
GeneralRe: Control updating is slow Pin
Geert van Horrik19-Jul-07 21:47
Geert van Horrik19-Jul-07 21:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.