Click here to Skip to main content
16,007,760 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data wipe algorithms Pin
Luc Pattyn7-Jan-08 15:10
sitebuilderLuc Pattyn7-Jan-08 15:10 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult7-Jan-08 15:53
mvePIEBALDconsult7-Jan-08 15:53 
GeneralRe: Data wipe algorithms Pin
Johan Martensson7-Jan-08 21:13
Johan Martensson7-Jan-08 21:13 
GeneralRe: Data wipe algorithms Pin
Ennis Ray Lynch, Jr.7-Jan-08 16:33
Ennis Ray Lynch, Jr.7-Jan-08 16:33 
GeneralRe: Data wipe algorithms Pin
PIEBALDconsult8-Jan-08 12:59
mvePIEBALDconsult8-Jan-08 12:59 
GeneralRe: Data wipe algorithms Pin
Ennis Ray Lynch, Jr.8-Jan-08 14:12
Ennis Ray Lynch, Jr.8-Jan-08 14:12 
Generalcan't understand suspendedLayout Pin
netJP12L7-Jan-08 6:01
netJP12L7-Jan-08 6:01 
GeneralRe: can't understand suspendedLayout Pin
Luc Pattyn7-Jan-08 6:36
sitebuilderLuc Pattyn7-Jan-08 6:36 
Hi,

Some Controls show a collection of items (ListBox, ListView, TreeView, ...). If you add items
one by one then the Control has to update its content every time, since it never knows
whether your Add() is the last one; this may take a lot of time, and cause a lot of flicker.

To avoid these drawbacks, you can typically do two things:
- use AddRange() instead of Add() to group several additions, hence reducing the number
of redraws;
- use SuspendLayout() before, and ResumeLayout() after, the massive add operation.

The final result will be the same, the amount of time and screen disturbance will differ.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Happy 2008!


GeneralRe: can't understand suspendedLayout Pin
netJP12L7-Jan-08 7:48
netJP12L7-Jan-08 7:48 
GeneralRe: can't understand suspendedLayout Pin
Luc Pattyn7-Jan-08 8:48
sitebuilderLuc Pattyn7-Jan-08 8:48 
GeneralRe: can't understand suspendedLayout Pin
netJP12L7-Jan-08 9:54
netJP12L7-Jan-08 9:54 
GeneralRe: can't understand suspendedLayout Pin
Luc Pattyn7-Jan-08 10:07
sitebuilderLuc Pattyn7-Jan-08 10:07 
GeneralRe: can't understand suspendedLayout Pin
Martin#7-Jan-08 22:28
Martin#7-Jan-08 22:28 
GeneralRe: can't understand suspendedLayout Pin
Luc Pattyn8-Jan-08 1:53
sitebuilderLuc Pattyn8-Jan-08 1:53 
GeneralRe: can't understand suspendedLayout Pin
Ed.Poore7-Jan-08 8:54
Ed.Poore7-Jan-08 8:54 
QuestionThreadin.Thread Problem Pin
humayunlalzad7-Jan-08 5:37
humayunlalzad7-Jan-08 5:37 
GeneralRe: Threadin.Thread Problem Pin
Judah Gabriel Himango7-Jan-08 6:04
sponsorJudah Gabriel Himango7-Jan-08 6:04 
GeneralRe: Threadin.Thread Problem Pin
humayunlalzad7-Jan-08 6:42
humayunlalzad7-Jan-08 6:42 
GeneralRe: Threadin.Thread Problem Pin
Judah Gabriel Himango7-Jan-08 7:04
sponsorJudah Gabriel Himango7-Jan-08 7:04 
GeneralRe: Threadin.Thread Problem Pin
humayunlalzad7-Jan-08 8:30
humayunlalzad7-Jan-08 8:30 
GeneralRe: Threadin.Thread Problem Pin
Judah Gabriel Himango7-Jan-08 10:30
sponsorJudah Gabriel Himango7-Jan-08 10:30 
GeneralRe: Threadin.Thread Problem Pin
Patrick Etc.7-Jan-08 7:41
Patrick Etc.7-Jan-08 7:41 
GeneralRe: Threadin.Thread Problem Pin
Judah Gabriel Himango7-Jan-08 7:50
sponsorJudah Gabriel Himango7-Jan-08 7:50 
GeneralRe: Threadin.Thread Problem Pin
humayunlalzad7-Jan-08 8:32
humayunlalzad7-Jan-08 8:32 
GeneralRe: Threadin.Thread Problem Pin
Luc Pattyn7-Jan-08 8:50
sitebuilderLuc Pattyn7-Jan-08 8:50 

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.