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

  • Thread starter Thread starter Guest
  • Start date Start date
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??
 
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
 
Back
Top