RTRD
Member
Ok, so this is what i got so far:

How can I continue this and make it so that I can activate a certain app i am making?
And yes I know it is only connecting to the database at the moment.

VB.NET:
Imports MySql.Data.MySqlClientPublic Class frmLogin
Dim conn As MySqlConnection
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
conn = New MySqlConnection()
conn.ConnectionString = "server=" & txtServer.Text & ";" _
& "user id=" & txtUsername.Text & ";" _
& "password=" & txtPassword.Text & ";" _
& "database=" & txtDatabase.Text & ";"
Try
conn.Open()
MessageBox.Show("Connection Opened Successfully")
conn.Close()
Catch myerror As MySqlException
MessageBox.Show("Error Connecting to Database: " & myerror.Message)
Finally
conn.Dispose()
End Try
End Sub
End Class
How can I continue this and make it so that I can activate a certain app i am making?
And yes I know it is only connecting to the database at the moment.