title: How to convert my MySQL Connection to a Class in VB.NET 2010?
body: <p>I have multiple forms, each form performs specific task that requires connection to the MySQL Server.<br>
  On each form, these are declared:  </p>
  
  <pre><code>Imports MySql.Data.SqlClient
  
  Dim myConnObj As New MySqlConnection
  </code></pre>
  
  <p>And I use them like this:</p>
  
  <pre><code>myConnObj = New MySqlConnection()
  myConnObj.ConnectionString = "Server=" &amp; db_Server &amp; ";Database=" &amp; dbase &amp; ";UID= &amp; "db_UserID &amp; ";PWD=" &amp; db_Password
  myConnObj.Open()
  
  ''Things to do here
  
  myConnObj.Close
  </code></pre>
  
  <p>I would like to convert this process into a Class to minimize the code and it should be available thru all the forms, but I dont know where to start. 
  Though I've already created an empty Class in VB named clsConnect.vb<br>
  Please note that "dbase" (the database I will connect into) should be varying.<br>
  Thanks in advance.</p>