Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why Controls lost?
Message
De
08/04/2005 16:45:31
 
 
À
08/04/2005 09:59:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01002399
Message ID:
01002859
Vues:
15
Hi again,
I found one thread ..
http://www.gotdotnet.com/community/messageboard/Thread.aspx?id=697
but no solution :(

Denis.


>Denis,
>
>I don't think you mentioned before that this was all in one project. I'm still not sure why your namespace is doubling up like that. Could you post the relevant namespace code for both your form and your control? Maybe you've coded something wrong.
>
>As far as your controls disappearing on your form ... they haven't disappeared. They are still there, but because there are compiler problems and the constructor code fires when you attempt to view your form in the IDE, it appears that they are gone. But, if you open the code of your form instead of viewing the form graphically, you'll see your code for all those controls is still there.
>
>~~Bonnie
>
>
>>Hi Bonnie,
>>Thanks for your response. I am new in .NET.. and can't understand something
>>1)
>>I have rootnamespace "mksbestbuy"
>>2) In a form code I include class code into namespace mksbestbuy ... end namespace
>>3) In Control code I include class code into same namespace
>>4) Project properties - root namespace is configured and = mksbestbuy.
>>5) "quick check reference of the project"
>>well... ok. I did it.. and what? I can't have self reference to mksbestbuy.exe where my classes (controls defined)
>>6) When I drop control on form I got like
>>Friend WithEvents Bestbuy_driverinfo_ctrl2 As mksbestbuy.mksbestbuy.bestbuy_driverinfo_ctrl
>>
>>and compiler error "mksbestbuy.mksbestbuy.bestbuy_driverinfo_ctrl is not declared"
>>Then I manually clear first namespace name and leave
>>mksbestbuy.bestbuy_driverinfo_ctrl
>>Now compiler accept changes.
>>
>>7). After come modifications.. I run application to test.. and.. lots compiler error. Open form - NO SUCH CONTROL on form.. and from code removed line NEW... but Friend WithEvents still there.. THats last behaviour make me realy angry, because I rebuild form 10 times per day ;(
>>
>>
>>Question:
>>doubled-up reference where? in project reference? - all classes located in one exe
>>Root namespace has same name as project and exist in properties.
>>
>>
>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform