About Form1.Designer.cs

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

There is a file called Forms1.Designer.cs that is located below Form1.cs if
we assume that we call the file that name.
I wonder if it's allowed to change in the file Forms1.Designer.cs except
InitializeComponent ?
One more question is it really any point to change in the Forms1.Designer.cs
?
I just wonder if it's enought in general to change only in the Form1.cs if
we call the file that name ?

I can imagine that the only one that is allowed to change in the
Forms1.Designer.cs is the compiler.

//Tony
 
Hello!

There is a file called Forms1.Designer.cs that is located below Form1.cs if
we assume that we call the file that name.
I wonder if it's allowed to change in the file Forms1.Designer.cs except
InitializeComponent ?
One more question is it really any point to change in the Forms1.Designer.cs
?
I just wonder if it's enought in general to change only in the Form1.cs if
we call the file that name ?

I can imagine that the only one that is allowed to change in the
Forms1.Designer.cs is the compiler.

You are free to edit the designer, just be careful. If you add an
event handler manually (not by clicking on the "lightning bolt" icon
in the properties window and double clicking on an event), the only
way you can associate the event handler to the control is by manually
adding the appropriate line in the designer. Well, actually, that can
be done anywhere in your app that has access to the control, but it is
normally done in the designer for all "fixed" controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top