468,321 Members | 2,033 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

Problem with the Forms Designer and namespaces

Hi,

I'm using C# with Visual Studio .NET 2003.

In my project, I have a class library with some custom windows forms controls.
The namespace for these controls is "WinMar.GUI".
If I try to use them in another project in a form in the "WinMar.Client"
namespace, the Forms Designer will generate a erroneous declarations in the
form. It will add the member with the full type and namespace, and it will fail
to compile with the error:
"error CS0234: The type or namespace name 'GUI' does not exist in the class or
namespace 'WinMar.Client.WinMar' (are you missing an assembly reference?)"

If I try to fix it typing the correct declation the Forms Designer will fail
and will remove all the control initilization in the InitializeComponent()
function. So, every time that I open the form in the Form Designer, I'll be
screwed. Sometimes, the Forms Designer will also fail to read the values of the
properties of the other controls, screwing up the entire form.

Has anyone noticed this? Am I doing anything wrong?

Thank you,
Diego Devesa

Jul 21 '05 #1
0 859

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Diego Devesa | last post: by
7 posts views Thread by Sergey Poberezovskiy | last post: by
reply views Thread by Bruin | last post: by
6 posts views Thread by ?scar Martins | last post: by
reply views Thread by Amiram Korach | last post: by
4 posts views Thread by Rod Gill | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.