Doing Time in the "Windows Form Designer generated code" region

  • Thread starter Thread starter John Sitka
  • Start date Start date
J

John Sitka

Many seem to say not to dig around in there too much,
but I'm in there alot.
Tweaking the Command set, bindings stuff like that.
Anyone else?
 
Take note that designer might refresh the code within that method and you'll
lose the changes.
 
Take note that designer might refresh the code
within that method and you'll
lose the changes.

Yeah, noticed. Seeing how some of it "ticks" helps or I fear I'll dump
VS.NET and go to notepad.
Then when I come in to inherit somebody elses stuff I won't know what all
the stuff is
and I'll get mad and/or quickly fired. Anyways it's been a landmark ADO.NET
week for me,
wrestled with CurrencyManager, BindingManagerBase, ConvertEventManager and
it didn't break me.
Pretty pumped up, been a long time coming. Uninterputed stretches of
dedicated time
can make a lot happen, real loud swearing helps too. <Closes office door.>

Miha Markic said:
Take note that designer might refresh the code within that method and you'll
lose the changes.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

John Sitka said:
Many seem to say not to dig around in there too much,
but I'm in there alot.
Tweaking the Command set, bindings stuff like that.
Anyone else?
 
Thanks for Miha's quick response.

Hi John,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know if it is recommended
to write code in "Windows Form Designer generated code" region. If there is
any misunderstanding, please feel free to let me know.

Just as Miha mentioned in his post, it is not recommended to do so, because
VS.NET might generate codes and overwrite your changes. There are other
places that can write initialize codes and get same effects, for example
the form constructor like "public Form1()", or the Form.Load event handler
like Form1_Load(object sender, System.EventArgs e).

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Hi John,

You're welcome. Thanks for sharing your experience with all the people
here. If you have any questions, please feel free to post them in the
community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top