Why can't I add a new Form?

  • Thread starter Thread starter Henke
  • Start date Start date
H

Henke

Hi!

I did add a new Windows Form to my project. Then I removed it and now I'd
like to add an other form with the same name that I previously removed from
the project. When I try this I get an error message saying that the file
already exists and that I have to enter a unique name for the form. I have
looked and the file doesn't exists. Is it possible to remove the name from
some file manually or what should I do?

Thanks!

/Henke
 
Havn't really a clue, but try shutting down the IDE, go into your project
dir ensure the file isn't there (which you say you've done), then delete the
..ncb file. (which cures several problems with controls disappearing off
forms).

Hope that helps, (don't blame me though if all goes wrong ha ha)

rollasoc...
 
I didn't know there was any ncb-files with Visual Studio .NET, are there?
Anyway, I do have some problems with disappearing controls...

/Henke
 
Hello Henke,
I did add a new Windows Form to my project. Then I removed it
and now I'd like to add an other form with the same name that
I previously removed from the project. When I try this I get
an error message saying that the file already exists and that

There are two ways to remove a file from a project. When you right
click on a file in the solution explorer you will see an 'Exclude From
Project' menu item and a 'Delete' menu item. I suspect you clicked on
the 'Exclude From Project' item, which will remove the file from the
project, but not actually delete it.

Hope this helps,
Len
 
Thanks Len, but I did click on Delete, not Exclude and if I look in the
directory the file is deleted. So I still can't add a form with the same
name...
/Henke
 
Back
Top