Article relates to
RadControls for WinForms
Jan 07, 2008
Last modified by
We start with two projects: a class library project and an application project that references to the first one. In all the vb files in the class library project we use the ClassLibrary namespace. One might expect to access the classes from the class library project in the application project by including the ClassLibrary namespace. However, this will result in an invalid reference error.
The reason for this is that VB adds the value of the ProjectName property to the beginning of the namespaces defined in a project. In this way, if the ProjectName is set to CustomControls, and the namespace is ClassLibrary, the full namespace name will become CustomControls.ClassLibrary.
To avoid this, in the VB class library project properties, you should leave the RootNamespace text field empty. This will allow you to access the classes only by using the ClassLibrary namespace.
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.