Denis,
It could be one of two things (or maybe even both <g>):
Sometimes VS gets confused with it's namespaces, particularly when dragging controls from the ToolBox for controls in the same namespace. After dragging a control onto your form, do a quick check of the references in the project and be sure you don't have any doubled-up references or ones with that double namespace that you've seen. If you do, simply remove the bad ones.
Also, check the namespaces of your projects ... right-click on the project, go to Properties and verify that you have the Default Namespace specified correctly.
~~Bonnie
>Hi,
>I have some problems with VisualStudio. Maybe here exist some solution?
>
>1) I create User Control. Then control appears on Toolbox.My User COntrol Tab. I create new Form and place control on form. Then compile. Now I have error...
>My control in code written as double namespace.
>
>namespace.namespace.controlname
>
>Each time I remove one namespace manufally in code and leave just namespace.controlname - then no error, but if I add additional object on form, then again appears namespace.namespace.controlname
>
>Why?
>
>2) This is realy hell for me.
>Same case.. Create User Control, add control on form. I build project, and if form with this control currently open during compile, control disapears and all reference losted.. Every time..
>
>Why?
>
>MS VisualStudio 2003, Microsoft Development Environment 2003, Version 7.1.3088