Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Must all forms of a project have same namespace?
Message
 
 
To
15/01/2010 17:34:21
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01444221
Message ID:
01444261
Views:
33
>>Hi,
>>
>>I have a project that has MainWindow and a couple of forms. The forms are called from the menu of the MainWindow form. After I manually changed namespace of forms things stopped working. Do I have to make sure that all forms of the project must have the same namespace? (or maybe something else caused the problem).
>
>You can have different namespaces with no problem. When you change them manually, just don't forget the partial classes that are generated by the design system. You need to change them there as well. Then of course depending on how you named them, you would have to have the using statements when you reference them from somewhere else.
>Tim

Thank you, Tim. This is what I overlooked when I changed the namespace; I missed changing namespaces of the partial classes.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform