Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / March 2008

Tip: Looking for answers? Try searching our database.

How to make default import

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Teo - 08 Mar 2008 20:46 GMT
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
Steve Gerrard - 08 Mar 2008 21:48 GMT
> Hi!!!
> I am importing a Mysql Data namespace into my VB.net application.
[quoted text clipped - 6 lines]
> Please help,
> Teo

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

In the project properties, you can specify project wide imports.
Cor Ligthert[MVP] - 09 Mar 2008 13:14 GMT
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

> Hi!!!
> I am importing a Mysql Data namespace into my VB.net application.
[quoted text clipped - 6 lines]
> Please help,
> Teo

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.