Windows Develop Bookmark and Share   
 index > Windows Forms General > Copy a form generates a resources error
 

Copy a form generates a resources error

I have an urgent problem, I tried to copy a from in the solution explorer. I renamed the form from the explorer and from the properties window. When I built the application, it generates the error:

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

I tried alot, but I didn't find any solution.

The original form have som datasets which I deleted in the new one. I added another dataset.
I tried to change the file .csproj by adding and deleting but the problem still exist.

I need an urgent help, please.
I am Muslim
Yasser Hosny  Wednesday, April 15, 2009 3:18 PM
Take a look it this...

http://www.programmersheaven.com/mb/VB_Beginner/364226/364226/vbnet-copy--paste-form-problem/?S=B20000


...it's for VB.NET but the same principle applies.

Jeff
  • Marked As Answer byYasser Hosny Wednesday, April 15, 2009 4:22 PM
  •  
JeffWask  Wednesday, April 15, 2009 3:28 PM
Take a look it this...

http://www.programmersheaven.com/mb/VB_Beginner/364226/364226/vbnet-copy--paste-form-problem/?S=B20000


...it's for VB.NET but the same principle applies.

Jeff
  • Marked As Answer byYasser Hosny Wednesday, April 15, 2009 4:22 PM
  •  
JeffWask  Wednesday, April 15, 2009 3:28 PM
Thanks a lot, it fixed the problem.
The error was in the renaming process. I recommend any one try to copy a form to rename the new form manually, without vs renaming, this will be by searching for the name of the old form in the new form and replace it with the new.

thank you again.
I am Muslim
Yasser Hosny  Wednesday, April 15, 2009 4:26 PM

You can use google to search for other answers

Custom Search

More Threads

• Control TextChanged Event Question
• Move Database
• Stop sound
• How do I select a textbox at runtime
• Child Windows Size
• VB.NET Menustrip control appears to filter out the Tab Key of a Windows form
• Master page kind of feature in winforms
• DateTimePicker focus on the day part
• Linking a Button to another App
• Captured event not called in custom control