Support Forums
[VB.Net] MySQL connection class [Register/List/Login] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [VB.Net] MySQL connection class [Register/List/Login] (/showthread.php?tid=19552)

Pages: 1 2 3


[VB.Net] MySQL connection class [Register/List/Login] - The-One - 06-13-2011

Hey,

I've been working on this a few hours now. I remade my old MySQL connection class. You can do the following things:
  • Login
  • Register a new account
  • List all the account

You can for example add a 'modify' account option or a 'delete' account option which UID count is already build in (meaning you should (never tested) never have two same UID's).

[Image: jdxmsK.png]


Code and Info:

The class file:

NOTE: to use this you must have MySql.Data.dll included as reference in your project

Usage is now very simple:

List the table:
Code:
Dim m As New MySQL_VB
        m.SetConnectionData("88.198.43.24", "username", "password", "testdba")
        m.UsersList_(ListView1)

Register a new account:
Code:
Dim m As New MySQL_VB
        m.SetConnectionData("88.198.43.24", "username", "password", "testdba")
        m.Register_(TextBox1.Text, TextBox2.Text, TextBox3.Text)

Check if a login exist or is valid:
Code:
Dim m As New MySQL_VB
        m.SetConnectionData("88.198.43.24", "username", "password", "testdba")
        m.Login_(TextBox6.Text, TextBox5.Text)

Downloads:

Whole project (as on the above image YOU MUST DOWNLOAD THE DATABASE FILE BELOW): http://www.mediafire.com/?yu25su89yo79rqb
MySQL.dll (already included on the project): http://www.mediafire.com/?1lk13m1bh8a98p3
Class file: http://www.mediafire.com/?jyu2lunh39jgjjl
Database file: http://www.mediafire.com/?mc8r9c0ob6xp77s


RE: [VB.Net] MySQL connection class [Register/List/Login] - -Dreams - 06-14-2011

I will DL this later thanks for the release.


RE: [VB.Net] MySQL connection class [Register/List/Login] - Coding Support - 06-15-2011

Very helpful bro. I saw a tutorial like this on TTG a while ago, it was sloppy and undetailed. Im gonna try this out tonight most likely.
Ill PM you if i need help, is that cool?


RE: [VB.Net] MySQL connection class [Register/List/Login] - ๖ۣۜDunsparth - 06-15-2011

Wow im not into coding [Yet] im actually extremely confused with how it works.

But thank u for the share hopefully some people will find it use full Smile


RE: [VB.Net] MySQL connection class [Register/List/Login] - cOld fus1on - 06-16-2011

I'll download this when I get home, this looks like something I could learn from..
Thanks for postin'!


RE: [VB.Net] MySQL connection class [Register/List/Login] - Trustable - 06-17-2011

Good job, keep it up! Smile


RE: [VB.Net] MySQL connection class [Register/List/Login] - The-One - 06-19-2011

(06-15-2011, 07:58 PM)Most Dope Wrote: Very helpful bro. I saw a tutorial like this on TTG a while ago, it was sloppy and undetailed. Im gonna try this out tonight most likely.
Ill PM you if i need help, is that cool?
No problem!

Thanks for posting all, goodluck on your further projects.



RE: [VB.Net] MySQL connection class [Register/List/Login] - LulzBoat - 06-20-2011

This is exactly the sort of thing you need when creating a checkout system
on a forum Smile

bookmarked.


RE: [VB.Net] MySQL connection class [Register/List/Login] - ★ASI_F★™ - 06-20-2011

Excelent share .Thank you Smile


RE: [VB.Net] MySQL connection class [Register/List/Login] - Slurms Makenzi - 06-21-2011

I'm going to download this later, seems very cool and want to try it. Thanks!

-Slurms Makenzi