Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
How do I modify the default imported namespaces for my project?

Locked How do I modify the default imported namespaces for my project?

  • Sunday, May 01, 2005 11:52 AM
     
     
    On most of my forms I have to import

    Imports Microsoft.VisualBasic
    Imports System.Data
    Imports System.Data.OleDb


    Is there any way of making this a default?

    dennist

All Replies

  • Sunday, May 01, 2005 11:58 AM
    Moderator
     
     Answered
    I'm assuming you are using Visual Basic 2005:

    1. Right-click on the project and click Properties
    2. On the Configuration window, select the References tab.
    3. Add the namespaces you want to import under Imported namespaces.

    HTH

    David