Object Libraries and Namespaces for Visual Basic 6.0 Users
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Object Libraries and Namespaces for Visual Basic 6.0 Users 

Namespaces may at first seem to be a new concept in Visual Basic 2005. However, conceptually, they are similar to object libraries in Visual Basic 6.0.

In Visual Basic 6.0, various libraries contain objects that are used to build an application. For example, the Visual Basic library contains the form objects and intrinsic control objects that were the foundation of a Windows-based application. You could see the objects contained in a given library by viewing it in the Object Browser.

In Visual Basic 2005, objects are contained in assemblies that are part of the .NET Framework class library. Each assembly represents a namespace. For example, form and control objects are contained in the System.Windows.Forms namespace. As in Visual Basic 6.0, namespaces can be inspected in the Object Browser.


Of special interest to Visual Basic 6.0 users is the Microsoft.VisualBasic namespace, which contains many objects and constants that allow you to continue using Visual Basic 6.0 syntax in Visual Basic 2005.

See Also

© 2016 Microsoft