CarlosS
9/9/2007 12:28:00 AM
The reason is that in VB.Net, the namespace declaration gets appended to the root namespace defined in the project properties. So if you have MyCompanyName.Controls as your root namespace, in code you should have this.<br /><br />Begin Class MyControl<br />...<br />End Class<br /><br />Results in the control named MyCompanyName.Controls.MyControl<br /><br />not <br /><br />Begin Namespace MyCompanyName.Controls.MyControl<br /> Begin Class MyControl<br /> ...<br /> End Class<br />End Namespace<br /><br />Results in the control named MyCompanyName.Controls.MyControl.MyControl<br /><br />In the first scenario, since there is no namespace defined, the root namespace gets appended to nothing, resulting in the root namespace. In the second scenario, the root namespace gets appended to the namespace declare in code which was MyCompanyName.Controls.MyControl, resulting in the really long namespace you see.<br /><br />Carlos S<br />BlackBelt Solutions