How to use VS2003 designer to design a form in a nested namespace

S

Sebastian Dau

Hi there,

I'm trying to design a form with the help of the VS2003 C++ Forms designer.
This works pretty good as long as the form is not included in a nested
namespace.

Example (works)

namespace MyFirstNS
{
public __gc class MyForm
{
MyForm(void);
};
}


Example (Designer does not open that code):

namespace MyFirstNS
{
namespace MySecondNS
{
public __gc class MyForm
{
MyForm(void);
};
}
}


Does anybody know how to create a form in a second namespace
that can be modified visually with the VS designer.
A result should be a form to be called like
MyFirstNS::MySecondNS::MyForm ();
with designer support.

Thanks for your help!

Sebastian Dau
 
T

Tarek Madkour [MSFT]

Does anybody know how to create a form in a second namespace
that can be modified visually with the VS designer.
A result should be a form to be called like
MyFirstNS::MySecondNS::MyForm ();
with designer support.

Not using VS2003 :( This is a bug. The designer will not load a form
that is not a member of a namespace or that is a member of a nested
namespace.

We fixed this for VS2005. You should find it working for the VS2005
Beta.
 

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