|
I am using VS2003 with Managed C++.
I got an problem with the Windows Forms Designer when changing the namespace for some forms.
First I had some forms like this:
namespace MyNamespace { public __gc class MyForm : public System::Windows::Forms::Form .... }
I wanted to add a new namespace:
namespace MyNamespace { namespace GUI { public __gc class MyForm : public System::Windows::Forms::Form .... } }
I also updated the "Resource File Name" property from
$(IntDir)/MyNamespace.MyForm.resources
to
$(IntDir)/MyNamespace.GUI.MyForm.resources
When I compile and run it everything is fine. But when I switch to the Design view of my code I got the Message:
An error occurred while loading the document. Fix the error, and then try loading the document again. The error Message follows: The designer could not be shown for this file because none of the classes within it can be designed.
So im not able to change the form with the designer any more.
I was searching for a while to find where I can maybe change some settings for the Designer to fix this but couldnt found anything. I also dont have much experience with Windows Forms. When I only change the name of MyNamespace to for example MyNewNamespace everything works fine but as soon as I add a new namespace I cannot use the designer any more.
Anybody knows a solution or where the problem is?
Thanks in advance.
Hoschie
|