Visual Studio .NET IDE Designer Fails When Implementing an custom namespace Form Programmatically in

G

Guest

GoodDay..

Trying to nest the designer generated Namespace of a form-project in another namespace.
with "MyCompay::MyApp"
The program builds correctly. However, when try to view the form in Design view in the Microsoft Visual Studio .NET IDE Designer, eceive the following error message

"The designer could not be shown for this file because non of the classes within it can be designed

here is code snipse

namespace MyCompany
namespace MyApp
namespace MCForm1
public __gc class MCForm1Control : public System::Windows::Forms::UserContro

..
}




stead of having a Form "MCForm1.MCForm1Control " I want to create "MyCompay.MyApp.MCForm1" .
Obviously I can manually add a namespace around the generated one, but doing so instantly kills the forms-designer's ability to function

Is it a buggy or something made by the design??
 
D

David Lowndes

Is it a buggy or something made by the design???

Poor design (IMHO).

It also doesn't like having another class declared first in the same
source code - though it's perfectly acceptable if it's included via a
..h file.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top