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.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay