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