Problem with auto-generation of .resx file |
| sambath kumar posted at 03-Jul-08 03:09 |
hi,
i got some program (WinForm application) -
i put all the source code for my program in Form1.cs (partial class Form1 : Form ..... )
then in the process the file Form1.cs became too long i decided to divide in several partial files to make it more easy to edit.
so now i've got
Form1.cs File1.cs File2.cs File3.cs
they all got the Partial class Form 1.... and some code
When click on File1.cs and hit F7 ( to edit code) everithing is fine, but when i double click on File1.cs Designer view to edit code suddently Visual studio automaticaly generates File1.resx file as well as the
private void InitializeComponent() { code code..... }
private void Form1_Load(object sender, EventArgs e) {
} so i get error ( because i have duplicated items) and i have to delete this code, as well as File1.resx file to compile the file
My question is : How can i disable the autogeneration of File1.resx file and the InitializeComponent(), Form1_Load methods
thank you in advance :)
sambath.
|
|