Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Controls lost?
Message
From
07/04/2005 18:21:32
 
 
To
07/04/2005 14:58:54
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01002399
Message ID:
01002453
Views:
30
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform