Try that.Code:conn.ConnectionString = string.format("server=" & "server IP" & ";" & "user id=" & txtUsername.Text & ";" & "password=" & txtPassword.Text & ";" & "database= usertable")
k, i'v been searching, and trying so many things and not comingup with any way of doing this.
basicly, i want it to do this.
button clicked:
--username.txt to a string
--password.txt to a string
open remote connection with username and password to remote connection
if sucsessfull, msgbox "hello world"
if not, msgbox "error"
thats it.
this is what i'v got...most complete code...
anybody tell me where im going wrong?Code:Private Sub Login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click conn = New MySqlConnection() conn.ConnectionString = "server=" & "server IP" & ";" _ & "user id=" & txtUsername.Text & ";" _ & "password=" & txtPassword.Text & ";" _ & "database= usertable" Try conn.Open() MessageBox.Show("user accepted, application starting") conn.Close() frmbrowser.show() me.close() Catch myerror As MySqlException MessageBox.Show("incorrect password") Finally conn.Dispose() End Try End Sub
Live Music Stream
Learning VB.net as a passtime...
[IMG]https://i10.photobucke*****m/albums/a144/RedX_Patronus/pbuser.png[/IMG]|
|
c++
Anti-afk---templates---MW2 unlocker public form---Vent flooder Skin
VB
(LoL multipatch)---PBrowser---(Minecopy)
(MW2 Unlocker)
Try that.Code:conn.ConnectionString = string.format("server=" & "server IP" & ";" & "user id=" & txtUsername.Text & ";" & "password=" & txtPassword.Text & ";" & "database= usertable")
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
i did change it.
details are correct.
mnpeep, tryed it. nothing happened...
Live Music Stream
Learning VB.net as a passtime...
[IMG]https://i10.photobucke*****m/albums/a144/RedX_Patronus/pbuser.png[/IMG]|
|
c++
Anti-afk---templates---MW2 unlocker public form---Vent flooder Skin
VB
(LoL multipatch)---PBrowser---(Minecopy)
(MW2 Unlocker)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Try this:
private conn as new mysqlconnection(String.Format("server={0};user id={1};password={2};database={3};", ip,username,password,database))
I guess the last ; is missing.
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
My connection string didn't end in a semicolon and I've never had problems with it
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
Blubb1337 (02-02-2011)