MSDN Form Load Performance Enhancement...

  • Thread starter Thread starter dwhittenburg
  • Start date Start date
D

dwhittenburg

I read this article on msdn that sounds great and makes sense about how the
designer by default does things a certain way for adding controls to the
form...And that there is a better way to do

me.control.controls.add(me.othercontrol)

you can do me.othercontrol.parent = me.control

However, everytime that I go back to the designer it changes the code that I
had changed in InitializeComponent.
Is there a way to make this not happen? Thanks

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml_node_entry.asp
 
No, every time you use the designer the code gets regenerated. I recall an
inexpensive add-in that did this work for you but I don't have a link
handy...

Cheers
Daniel
 
Jim,

Have you found that this technique actually improves performance?

I seem to recall that SP2 onwards already included this?

A previous post of mine on this subject had some other techniques that
you may find useful.

"Optimising InitializeComponent (takes 1 second!)"

Thanks
 
dwhittenburg said:
I read this article on msdn that sounds great and makes sense about
how the designer by default does things a certain way for adding
controls to the form...And that there is a better way to do

Has Microsoft improved the forms designer in VS2005?
 
Back
Top