• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Referencing MySQL.dll file


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

  • 2
1 Solution
Fernando SotoRetiredCommented:
Imports MySql.Data.MySqlClient
foobarrAuthor Commented:

Fernando SotoRetiredCommented:
Glad I was able to help. :=)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now