Duplicate Component Name

Warning 1 Duplicate component name ‘ClassnameDataGridViewTextBoxColumn’. Component names must be unique and case-insensitive.

This error is one of those that appear in designer generated code. @#@k the VS2005 development team (I dont want to be a MVP - so i can say that).

This error disables the designer view of any form meaning that you cant modify it.
Rebuilding the project does not change a thing.

Solution
1. Open the file designer.vb
2. Do a Find-Replace replacing the alleged duplicate component name with smething else.
3. Save and Close your project then reopen it

If this does not work then you will have to recreate your form and controls from scratch. So sowry

Happy Coding!!!

technorati tags

Leave a Reply