Click here to Skip to main content
16,005,149 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWorkaround for Raw sockets in Windows XP SP2? Pin
Tom Paluzzi25-Jan-06 4:52
Tom Paluzzi25-Jan-06 4:52 
QuestionCan C++ be used to create a powerful web app? Pin
larryfran24-Jan-06 19:24
larryfran24-Jan-06 19:24 
AnswerRe: Can C++ be used to create a powerful web app? Pin
James Gupta25-Jan-06 1:38
professionalJames Gupta25-Jan-06 1:38 
AnswerRe: Can C++ be used to create a powerful web app? Pin
Dave Kreskowiak25-Jan-06 1:53
mveDave Kreskowiak25-Jan-06 1:53 
AnswerRe: Can C++ be used to create a powerful web app? Pin
Kevin McFarlane26-Jan-06 6:52
Kevin McFarlane26-Jan-06 6:52 
QuestionHow to import C# structs into MC++ without loss of inheritance connectivity Pin
chervu24-Jan-06 10:45
chervu24-Jan-06 10:45 
QuestionFilling a ListView is too slow. Pin
luke72724-Jan-06 6:42
luke72724-Jan-06 6:42 
AnswerRe: Filling a ListView is too slow. Pin
Ray Cassick24-Jan-06 7:14
Ray Cassick24-Jan-06 7:14 
Try turning off screen updates for that control before you add the items and then turn them on again when you are done.

Take a look into SuspendLayout and ResumeLayout.

The bottom line is that you have to trade off SOMETHING. Suspend and Resume stop you form seeing the updates as the data is put in. Adding the sleep allows you to process the main thread and see UI updates but as you see causes the process to take longer.

Better, Faster, Cheaper, Pick two. You can't have it all. Maybe look into how you can load less items. Do you really need all 1500?


Maybe consider doing something like putting them into a local dataset and then binding to that instead of writing directly to the control.

Maybe write some entries then wait for the user to scroll down closer to the end and then add more as needed at that time.





George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.

My Blog[^]


GeneralRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 9:04
luke72724-Jan-06 9:04 
AnswerRe: Filling a ListView is too slow. Pin
Daniel Grunwald24-Jan-06 8:48
Daniel Grunwald24-Jan-06 8:48 
GeneralRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 9:14
luke72724-Jan-06 9:14 
AnswerRe: Filling a ListView is too slow. Pin
luke72724-Jan-06 21:04
luke72724-Jan-06 21:04 
GeneralRe: Filling a ListView is too slow. Pin
Daniel Grunwald25-Jan-06 4:16
Daniel Grunwald25-Jan-06 4:16 
GeneralRe: Filling a ListView is too slow. Pin
Dan Neely25-Jan-06 5:39
Dan Neely25-Jan-06 5:39 
AnswerRe: Filling a ListView is too slow. Pin
luke72725-Jan-06 7:34
luke72725-Jan-06 7:34 
QuestionCulture and TwoLetterISOLanguageName Pin
Alsvha24-Jan-06 3:40
Alsvha24-Jan-06 3:40 
AnswerRe: Culture and TwoLetterISOLanguageName Pin
lmoelleb24-Jan-06 21:18
lmoelleb24-Jan-06 21:18 
QuestionInvokeMember and [out] parameter from COM Pin
QuaKx23-Jan-06 20:50
QuaKx23-Jan-06 20:50 
Question2005 Posters Pin
Jack Puppy23-Jan-06 13:52
Jack Puppy23-Jan-06 13:52 
AnswerRe: 2005 Posters Pin
Paul Conrad23-Jan-06 18:45
professionalPaul Conrad23-Jan-06 18:45 
Questionvc 2005 and Manifests Pin
Swinefeaster23-Jan-06 13:32
Swinefeaster23-Jan-06 13:32 
QuestionPassword Textbox Pin
Paul Conrad23-Jan-06 10:58
professionalPaul Conrad23-Jan-06 10:58 
AnswerRe: Password Textbox Pin
Dave Kreskowiak23-Jan-06 11:02
mveDave Kreskowiak23-Jan-06 11:02 
GeneralRe: Password Textbox Pin
Paul Conrad23-Jan-06 12:19
professionalPaul Conrad23-Jan-06 12:19 
AnswerRe: Password Textbox Pin
James Gupta24-Jan-06 9:33
professionalJames Gupta24-Jan-06 9:33 

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.