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.

 




Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  Problem with auto-generation of .resx file - sambath kumar  03-Jul-08 3:09:16 AM
      Reply - alice johnson  03-Jul-08 3:16:13 AM
      use this partial class in vs.net 2005 - Arvind Kumar  03-Jul-08 3:21:01 AM
      try like this... - Vasanthakumar D  03-Jul-08 3:22:41 AM
      You can try this in web.config file - santhosh kumar  03-Jul-08 3:36:09 AM
View Posts