Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 72053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:59:03+00:00 2026-05-10T19:59:03+00:00

In C# some of default name space such as System.Collections are listed without typing

  • 0

In C# some of default name space such as System.Collections are listed without typing in using blah. In visual basic, they are not imports for you. Is there a way to force vb to auto imports some of default name space or VB work differently than C#?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:59:04+00:00Added an answer on May 10, 2026 at 7:59 pm

    I think the first item posted by John Rudy is what you’re looking for- add them in the project properties.

    However, VB.Net does also work differently than C#, in that it means a different thing in VB to import a namespace than it does in C#. When you import a namespace in VB, it also brings child namespaces ‘in scope’, in a manner of speaking.

    Take the System namespace, for example, which is imported by default. Because the System namespace is imported, you don’t have to first type System. to reference a child namespace like IO, like you would in C#. So, right out of the box you can say something like this in VB:

    If IO.File.Exists(MyFile) Then .... 

    That just isn’t possible in C# right now. You either have to also import System.IO and then just say File.Exists() or list out the System namespace as well: System.IO.File.Exists().

    It may not seem very significant, but you really get used to this VB feature after a while, and it comes in handy more than you’d think. I bring all this up because the end result of this feature is that you often don’t want to import as many namespaces in VB as you do in C#.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to set my GtkComboBox to have some default value/name, on it as
I am building a class library and using its default namespace as System. There
I have some default values for testing my code, but for security reasons those
How can we set element to some default date in mysql ? In oracle
I am trying to set some default inherited permissions to a directory that will
Many mobile web browsers have some default functionality on image hold. For example, user
Suppose I have a Generic abstract class that provides some default constructor functionality so
I have static combo box in html with some default value already selected and
Hi I am trying to use NSUserDefaults to save some default values in database.
I am making a custom control I need to add some default keybindings, microsoft

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.