I had a windows form named "FormOrdersList" that I
deleted from the .net project. During the deletion i was
asked wether I wanted to update something on the very
same form (I dont remember what it was) and I just
clicked "yes" which I believed to be the default.

Then I tried to add an inherited form with the
name "FormOrdersList". I get the response that
FormsOrderList cannot be added because it exists in the
project from before.

I then try to add a normal (not inherited) windows form
named "FormOrdersList". This works fine as well as
deletion.

But when I try to add "FormOrdersList" as inherited form
again I get the respons that the form exists in the
project and cannot be added. What can I do to remove all
garbage in the .net project for the old form??

Regards

Tore

RE: Cannot remove windows form from .net project by v-yiy

v-yiy
Sun Oct 26 21:49:10 CST 2003

Hi Tore,
On creating an Inherited Forms, VS.NET will get the current formtypes from
the generated assembly. you may try rebuilding your project to update the
assembly.
Does this solve your problem?
If you still have problem on this issue, please be free to post on the
group!
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!


RE: Cannot remove windows form from .net project by Tore

Tore
Mon Oct 27 13:01:49 CST 2003

Sorry, your advice did not solve the problem. Looks like
I have to give my form another name or just drop
inheritance in this case.

Regards

Tore Gylver

RE: Cannot remove windows form from .net project by v-yiy

v-yiy
Tue Oct 28 08:01:38 CST 2003

Hi Tore,
On my side , I can repro your problem as follows.
1. Open a new WinForm Project
2. Build the project to generated the assembly
3. create an inherited form deriving from Form1names Form2
4. Rebuild the project to update the assembly
5. delete the Form2 from project ( a message box will appear to confirm it).
6. Try adding an inherited form with the same name,a Message Box popup with
message 'Form2' already exists in 'WinApp', please enter a unique name.

I use "Rebuild" command to Rebuild my project, then add the inherited form
with the same name and it is ok.If you have several projects maybe you
should use Rebuild solution instead.
This work around is not work for your problem?

You may check if the generated assembly still has that form type, by ILDasm
in .NET Framework.
Does it still exist in the assembly?

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!

--------------------
| Content-Class: urn:content-classes:message
| From: "Tore Gylver" <nospam@tgylnospam.no>
| Sender: "Tore Gylver" <nospam@tgylnospam.no>
| References: <0ac101c39a08$4f559310$a101280a@phx.gbl>
<iIwyM1DnDHA.2808@cpmsftngxa06.phx.gbl>
| Subject: RE: Cannot remove windows form from .net project
| Date: Mon, 27 Oct 2003 11:01:49 -0800
| Lines: 7
| Message-ID: <09a701c39cbc$c69bf480$a001280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOcvMabkHCuRYpvSyy9+L5zJ3It0Q==
| Newsgroups: microsoft.public.dotnet.framework.windowsforms
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:55313
| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.framework.windowsforms
|
| Sorry, your advice did not solve the problem. Looks like
| I have to give my form another name or just drop
| inheritance in this case.
|
| Regards
|
| Tore Gylver
|


Thank you, it worked by nospam

nospam
Wed Oct 29 15:57:30 CST 2003

I tried your procedure and it worked. May be there is a
difference between "build" and "rebuild"?? When I wrote
my first post I think I had done many builds without any
success, I am not sure I did try the rebuild.

Now some days have passed and I have had a number of
power-downs and restarts of my computer,and it works
fine. Thank you.

Regards Tore Gylver