General VB.NET Question...

Posted on 2003-03-04
Medium Priority
Last Modified: 2012-06-27
I've been using .NET for about 6 months now, but still occassionally get confused by the whole Reference/Assembly/Imports deal within a Standard windows project (or any .NET project for that matter). Can someone please explain why, for instance, after creating an empty VB.NET windows application, do I need to use the Imports keyword within the scope of my code to gain access to say the "ControlsChars" class (Within the Microsoft.VisualBasic namespace, Microsoft Visual Basic .NET assembly), but I do not need to use the Imports keyword to gain access to the "Array" class. (Within the System namespace, MSCORLIB assembly) I'm guessing it's because somewhere at the project level, the MSCORLIB has been automatically imported for me, but I can't find it anywhere...

Understanding this would help me understand why a few other things within the framework as well, and would be greatly appreciated. Forgive me in advance if this is the stupidest question ever posted here. ;)
Question by:wgyger
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 28

Accepted Solution

iboutchkine earned 100 total points
ID: 8065243
Go to Project Properties-Common Properties-Imports and you will see what is imported by default

Author Comment

ID: 8065295
That would explain it...Thanks.

Author Comment

ID: 8065454
Actually, that would explain why it's "available" to the project, but why do I (we) need to explicitly "Import" the namespace into a code module to gain access to the ControlsChars class, but I don't have to do this with the Arrays class. Both class assemblies are listed in the imports property section.

Very confusing to say the least.

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question