?
Solved

Referencing MySQL.dll file

Posted on 2006-05-04
3
Medium Priority
?
255 Views
Last Modified: 2012-08-14
Hi

I have added a reference to mySQL using the .net 2.0 connector in my vb project

but when i want to use a mySQL control (for eg the mySQLConnection) I have to type

Dim myConnection as MySql.Data.MySqlClient.MySqlConnection

The part of "MySql.Data.MySqlClient" is a hassle cuz its so long to type plus it makes the code less readable

I know in C# you could go
using MySql.Data.MySqlClient

and in Java you can do something similar

but I cannot seem to find out how to do it in VB 2005

is there anyway for me to do it so i dont have to type that whole thing all the time...or am i out of luck

cheers
0
Comment
Question by:foobarr
  • 2
3 Comments
 
LVL 64

Accepted Solution

by:
Fernando Soto earned 2000 total points
ID: 16605146
Imports MySql.Data.MySqlClient
0
 
LVL 7

Author Comment

by:foobarr
ID: 16605447
thanks

0
 
LVL 64

Expert Comment

by:Fernando Soto
ID: 16605499
Glad I was able to help. :=)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

809 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