resource parameter?

im not quite sure how this happened and im not sure on what it is and how to fix it.. help please

Error 1 The item "obj\Debug\abc.Form1.resources" was specified more than once in the "Resources" parameter. Duplicate items are not supported by the "Resources" parameter.




Answer this question

resource parameter?

  • William Davies

    you are welcome!

  • nixob

    I think you are still using the Beta version of Visual Basic 2005 If you are, I suggest you to upgrade

    To fix the error message, you can delete/regenerate your form’s the resources file

    1. Open the Solution Explorer
    2. Click on Show All the file button
    3. Open each of your Form nodes. For example, under Main.vb, there are two files: Main.Designer.vb and Main.resx
    4. Delete the resx file under the modes
    5. Build, now the error should go a way.


  • farmer101

    Thanks for the solution by removing the resx file. Here's how to duplicate.

    1. Create a partial class that inherits from an existing form object. The parent form object should have existing UI controls. (This is the recommended way in 2005 to store methods for a form that might be obliterated during Designer re-creation.)

    2. Since this partial class inherits from an existing form, a form designer is presented when you click on it in the Solution Explorer.

    3. Drag a control from the toolbox to this blank form.

    4. A resx file will be created for the partial class form, as will an additional "InitializeComponent" method. The existence of both of these cause the build errors.

    Remove the new control from the partial class form.

    Remove the resx file for the partial class form and also remove the InitializeComponent method in the partial class, as well.

    Just a newbie to this, but it looks like you can't put user controls in the partial class.

     


  • Anubhav Singh Rawat

    I had the same issue and have been stumped on it for 2 days. Just tried it today and the first solution works, although the second solution would work also I assume.

    Thanks for the help.


  • BlackCatBone

    oh and im using visual basic 2005


  • gardener01

    I had the same problem, but not with the beta version.
    Problem solved by going to the VS project file, opened it in Notepad and find the duplicate entry there. Just remove one of them. Save the file and open again in VS.

    Jeroen


  • JoneLee

    does anyone know what this might be i cannot find any resource parameter code or any code that has anything to do with resources in my project


  • Jack Hudler

  • psychokiller

    thanks jack appreciate your help!


  • c0ke

    not sure... do you mind I take a look at your project email to *j*a*c*k*h*u*@*m*i*c*r*o*s*o*f*t*.*c*o*m*



  • resource parameter?