VB .Net: Import NameSpace to Project

vblover_programmer

vblover programmer

Posted on August 24, 2024

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.

💖 💪 🙅 🚩
vblover_programmer
vblover programmer

Posted on August 24, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related