DEV Community

vblover programmer
vblover programmer

Posted on

VB .Net: Import NameSpace to Project

Hi there...

To Import a NameSpace in each CodeFile(Class, Module,...) of project in Visual-Basic we can use Imports KeyWord.

Example:

Imports System.Reflection
Enter fullscreen mode Exit fullscreen mode

By this kind of Import we can use that NameSpace Members just at the current filecode.

But for Use A NameSpace at Project (As General), we need to use the Project Properties....

Steps:

1. Right-Click on Project and Select Properties, to show Project Properties Window.

Image description

2. Select 'References' Tab Page....

Image description

3.Find each Namespaces at 'Imported Namespaces' Section, you need in your project and Select those to Import in Project....

Image description

Note: If you can't find any Namespaces, Using 'Add Reference...' Feature to Add Reference in project then find and select that Namespace at 'Imported Namespaces' Section.

Top comments (0)