How to make default import

T

Teo

Hi!!!
I am importing a Mysql Data namespace into my VB.net application.
Everytime I want to use queries, etc I need to have the Imports
Mysql.Data.Mysqlclient on top of my form page.
Is there a way to make the namespace default for my application so that I
don't have to call it within every single form I create? It gets tedious
after some time.

Please help,
Teo
 
S

Steve Gerrard

Teo said:
Hi!!!
I am importing a Mysql Data namespace into my VB.net application.
Everytime I want to use queries, etc I need to have the Imports
Mysql.Data.Mysqlclient on top of my form page.
Is there a way to make the namespace default for my application so
that I don't have to call it within every single form I create? It
gets tedious after some time.

Please help,
Teo

http://msdn2.microsoft.com/en-us/library/64c84czf(VS.80).aspx

In the project properties, you can specify project wide imports.
 
C

Cor Ligthert[MVP]

Teo,

Yea that is one of the nice things of VB most people loving C# forget this
simple but very handy things.
Have a look at the message from Gerard

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top