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

Re: MSDN Form Load Performance Enhancement... by Daniel

Daniel
Wed Apr 27 13:26:26 CDT 2005

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
--
http://www.danielmoth.com/Blog/


"dwhittenburg" <dwhittenburg@greenwaymedical.com> wrote in message
news:e7bkZTzSFHA.2768@tk2msftngp13.phx.gbl...
>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
>
>
>


Re: MSDN Form Load Performance Enhancement... by Jim

Jim
Wed Apr 27 14:39:05 CDT 2005

I believe this is the add-on you are referring to. Have not used it, but it
is inexpensive, and soon to be free according to the website.

http://www.mrgsoft.com/products/ICO/default.htm

Good luck!
Jim

"Daniel Moth" <dmoth74@hotmail.com> wrote in message
news:%23N95$Z1SFHA.336@TK2MSFTNGP09.phx.gbl...
> 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
> --
> http://www.danielmoth.com/Blog/
>
>
> "dwhittenburg" <dwhittenburg@greenwaymedical.com> wrote in message
> news:e7bkZTzSFHA.2768@tk2msftngp13.phx.gbl...
> >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
> >
> >
> >
>



Re: MSDN Form Load Performance Enhancement... by nzpcmad

nzpcmad
Wed Apr 27 15:35:32 CDT 2005

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


Re: MSDN Form Load Performance Enhancement... by John

John
Thu Apr 28 09:30:34 CDT 2005

dwhittenburg wrote:
>
> 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?

--
John T
____________________