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
|