Hello,

I wish to include one simple in InitializeComponent, that would not
compromised this function any way. But VS 2005 Designer sometimes automaticly
rewrites InitializeComponent, and remove my code.

Any suggestion how to disable VS 2005 designer to do this?

Thanks
Milan

Re: How to avoid automatic Designer (VS2005) rewriting InitializeCompo by Steve

Steve
Wed Oct 25 02:14:08 CDT 2006

Do not include any of your code in this method! This method is autogenerated
by VS 2005 and if you modify this, this could break the design
functionnalities of VS.

Add your code in the constructor of your form if you need some other stuff
in the initialisation of the form.

Steve


"MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de news:
4E511CA3-BE66-4C63-81C1-06D98AF8B4DE@microsoft.com...
> Hello,
>
> I wish to include one simple in InitializeComponent, that would not
> compromised this function any way. But VS 2005 Designer sometimes
> automaticly
> rewrites InitializeComponent, and remove my code.
>
> Any suggestion how to disable VS 2005 designer to do this?
>
> Thanks
> Milan



Re: How to avoid automatic Designer (VS2005) rewriting InitializeC by MilanB

MilanB
Wed Oct 25 02:37:02 CDT 2006

I know for all of that, and because of this reason I asked question, how to
avoid problem!
Any suggestion...

Thanks

"Steve B." wrote:

> Do not include any of your code in this method! This method is autogenerated
> by VS 2005 and if you modify this, this could break the design
> functionnalities of VS.
>
> Add your code in the constructor of your form if you need some other stuff
> in the initialisation of the form.
>
> Steve
>
>
> "MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de news:
> 4E511CA3-BE66-4C63-81C1-06D98AF8B4DE@microsoft.com...
> > Hello,
> >
> > I wish to include one simple in InitializeComponent, that would not
> > compromised this function any way. But VS 2005 Designer sometimes
> > automaticly
> > rewrites InitializeComponent, and remove my code.
> >
> > Any suggestion how to disable VS 2005 designer to do this?
> >
> > Thanks
> > Milan
>
>
>

Re: How to avoid automatic Designer (VS2005) rewriting InitializeC by Steve

Steve
Wed Oct 25 03:20:52 CDT 2006

Read again my post... I suggested you to add something in the constructor of
the form...
You may explain what your are trying to do. That should help us to
understand your problem and try to solve it.

Steve

"MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de news:
ED6BE642-D047-4055-850A-A18E7877BD29@microsoft.com...
>I know for all of that, and because of this reason I asked question, how to
> avoid problem!
> Any suggestion...
>
> Thanks
>
> "Steve B." wrote:
>
>> Do not include any of your code in this method! This method is
>> autogenerated
>> by VS 2005 and if you modify this, this could break the design
>> functionnalities of VS.
>>
>> Add your code in the constructor of your form if you need some other
>> stuff
>> in the initialisation of the form.
>>
>> Steve
>>
>>
>> "MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de
>> news:
>> 4E511CA3-BE66-4C63-81C1-06D98AF8B4DE@microsoft.com...
>> > Hello,
>> >
>> > I wish to include one simple in InitializeComponent, that would not
>> > compromised this function any way. But VS 2005 Designer sometimes
>> > automaticly
>> > rewrites InitializeComponent, and remove my code.
>> >
>> > Any suggestion how to disable VS 2005 designer to do this?
>> >
>> > Thanks
>> > Milan
>>
>>
>>



Re: How to avoid automatic Designer (VS2005) rewriting InitializeC by MilanB

MilanB
Wed Oct 25 03:58:01 CDT 2006

I wish to replace second line in Form InitializeComponent:
System.ComponentModel.ComponentResourceManager resources = new
System.ComponentModel.ComponentResourceManager(typeof(MdiForm));

with my own contstructor of resources, and use all other lines in
InitializeComponent where is used ApplyResources and other regarding
resources.

But I found namespace System.ComponentModel.Design where user can add custom
steps...

I hope, I will complete aim with this namespace.

Thanks
Milan

"Steve B." wrote:

> Read again my post... I suggested you to add something in the constructor of
> the form...
> You may explain what your are trying to do. That should help us to
> understand your problem and try to solve it.
>
> Steve
>
> "MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de news:
> ED6BE642-D047-4055-850A-A18E7877BD29@microsoft.com...
> >I know for all of that, and because of this reason I asked question, how to
> > avoid problem!
> > Any suggestion...
> >
> > Thanks
> >
> > "Steve B." wrote:
> >
> >> Do not include any of your code in this method! This method is
> >> autogenerated
> >> by VS 2005 and if you modify this, this could break the design
> >> functionnalities of VS.
> >>
> >> Add your code in the constructor of your form if you need some other
> >> stuff
> >> in the initialisation of the form.
> >>
> >> Steve
> >>
> >>
> >> "MilanB" <MilanB@discussions.microsoft.com> a écrit dans le message de
> >> news:
> >> 4E511CA3-BE66-4C63-81C1-06D98AF8B4DE@microsoft.com...
> >> > Hello,
> >> >
> >> > I wish to include one simple in InitializeComponent, that would not
> >> > compromised this function any way. But VS 2005 Designer sometimes
> >> > automaticly
> >> > rewrites InitializeComponent, and remove my code.
> >> >
> >> > Any suggestion how to disable VS 2005 designer to do this?
> >> >
> >> > Thanks
> >> > Milan
> >>
> >>
> >>
>
>
>