-
Login
Alright, So with this game I am Making with VB I am Confused on how to make the login system to make the registered user to login to his character automatically other then having to make a new character? Here is my login System code not much
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = My.Settings.Username And TextBox2.Text = My.Settings.Password Then
CharCreateForm.Show()
Me.Hide()
End If
End Sub
-
Re: Login
You obviously have to save all created usernames somewhere, then read them again on launch. Your application, by itself wont save anything unless you tell it to. You could use a text file, or a database, store it in an INI file, save it in the Registry etc etc. Search the forum (http://www.vbforums.com/search.php) for "save text file" for example and you'll get plenty of results and code on how to do it. Do similarly for "load text file". Then after you loaded the save data you can compare it to what the user enters so they don't have to recreate their account/profile each time.
-
Re: Login
-
Re: Login
Thread moved from 'VB6 and Earlier' forum to 'VB.Net' (VB2002 and later) forum