Click here to Skip to main content
15,904,024 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Questioni got error Pin
munna_vannan17-Sep-07 21:32
munna_vannan17-Sep-07 21:32 
AnswerRe: i got error Pin
smartyP18-Sep-07 3:37
smartyP18-Sep-07 3:37 
AnswerRe: i got error Pin
Paul Conrad27-Oct-07 11:27
professionalPaul Conrad27-Oct-07 11:27 
QuestionDatagridview Pin
somagunasekaran17-Sep-07 20:18
somagunasekaran17-Sep-07 20:18 
AnswerRe: Datagridview Pin
Paul Conrad27-Oct-07 11:28
professionalPaul Conrad27-Oct-07 11:28 
QuestionBindingList versus DataGridview.Rows.Add Pin
dreamz648016-Sep-07 22:45
dreamz648016-Sep-07 22:45 
AnswerRe: BindingList versus DataGridview.Rows.Add Pin
Urs Enzler17-Sep-07 2:02
Urs Enzler17-Sep-07 2:02 
AnswerRe: BindingList versus DataGridview.Rows.Add Pin
dreamz648017-Sep-07 19:40
dreamz648017-Sep-07 19:40 
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 

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.