Click here to Skip to main content
15,896,207 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionSlow repaint of controls [modified] Pin
MrRobot16-Sep-07 21:36
MrRobot16-Sep-07 21:36 
AnswerRe: Slow repaint of controls Pin
Luc Pattyn16-Sep-07 22:51
sitebuilderLuc Pattyn16-Sep-07 22:51 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 0:50
MrRobot17-Sep-07 0:50 
GeneralRe: Slow repaint of controls Pin
Luc Pattyn17-Sep-07 1:19
sitebuilderLuc Pattyn17-Sep-07 1:19 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 2:57
MrRobot17-Sep-07 2:57 
GeneralRe: Slow repaint of controls Pin
Luc Pattyn17-Sep-07 2:59
sitebuilderLuc Pattyn17-Sep-07 2:59 
GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 5:44
MrRobot17-Sep-07 5:44 
GeneralRe: Slow repaint of controls Pin
Dave Kreskowiak17-Sep-07 13:54
mveDave Kreskowiak17-Sep-07 13:54 
The Control class in the .NET Framework is a bit heavier than the base class in MFC. Putting 800 controls on a form will take forever to render, no matter what you do. Even then, the MFC code is probably not using true "controls", but lighter-weight custom windows, or a rendering engine.

Think of the number of WM_PAINT messages going to all those windows. That's 800 seperate paint events. In the case of user controls, even worse, since the paint event is going to the user control, then there's another paint event fired for the child controls of the user control. Things are getting ugly pretty fast, aren't they?

The less controls you have, the better, period. Under 50 controls and you'd be doing much better.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Slow repaint of controls Pin
MrRobot17-Sep-07 21:45
MrRobot17-Sep-07 21:45 
AnswerRe: Slow repaint of controls Pin
MrRobot17-Sep-07 0:28
MrRobot17-Sep-07 0:28 
QuestionToolstrip control Work like toolbox in vs2005 Pin
VB 8.013-Sep-07 20:33
VB 8.013-Sep-07 20:33 
QuestionImage Background in a RichTextBox Pin
Stige13-Sep-07 11:52
Stige13-Sep-07 11:52 
AnswerRe: Image Background in a RichTextBox Pin
DigiOz Multimedia16-Sep-07 12:49
DigiOz Multimedia16-Sep-07 12:49 
QuestionWebBrowser Control. Urgent. Pin
Elizma13-Sep-07 6:18
Elizma13-Sep-07 6:18 
AnswerRe: WebBrowser Control. Urgent. Pin
Paul Conrad26-Sep-07 16:18
professionalPaul Conrad26-Sep-07 16:18 
QuestionRunTime How to Set A Object Type Pin
M.Sathiskumar13-Sep-07 0:49
M.Sathiskumar13-Sep-07 0:49 
AnswerRe: RunTime How to Set A Object Type Pin
Lutosław17-Sep-07 4:40
Lutosław17-Sep-07 4:40 
QuestionUser Control with container area? [modified] Pin
MrBean12-Sep-07 23:23
MrBean12-Sep-07 23:23 
AnswerRe: User Control with container area? Pin
Lutosław13-Sep-07 7:13
Lutosław13-Sep-07 7:13 
GeneralRe: User Control with container area? Pin
MrBean13-Sep-07 21:19
MrBean13-Sep-07 21:19 
AnswerRe: User Control with container area? Pin
Patrick Etc.19-Sep-07 16:54
Patrick Etc.19-Sep-07 16:54 
GeneralRe: User Control with container area? Pin
MrBean19-Sep-07 23:22
MrBean19-Sep-07 23:22 
QuestionHow to show a calendar in wpf Pin
sarodam11-Sep-07 19:37
sarodam11-Sep-07 19:37 
QuestionNeed information on Form.resx files. Pin
Preston McCormick11-Sep-07 13:28
Preston McCormick11-Sep-07 13:28 
QuestionSimple question about button on windows forms Pin
maglev_tgv10-Sep-07 22:18
maglev_tgv10-Sep-07 22:18 

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.