Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27439

VS 2010 New Accounts Selection

$
0
0
Hi all,

I am trying to write a program in VB.NET 2010 Express that will allow me to access User Accounts.

I have managed, via the internet, to set up a login / register program, now I want to set up a form (form3) that will display a specific users details, i.e. if I register as Peter and then login, I want the program to "load" my personal details - "Peter, 123 New Street Tel: 0123456789" etc. If I login as "Chris, then Chris's details will be displayed in form3's textbox.

I obviously need to use a database and something to "save" the details in.

Is this possible please?

Could anyone please help with any of this???

The code so far is:

code
Public Class Form1

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
Form3.Show()
Me.Hide()
Else
MsgBox("Incorrect Username or Password!")
Form3.Hide()
End If
End Sub

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Form2.Show()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
End Class
' how do I set form3.textbox.text to a specific text, i.e. if Peter creates an account, and logs in, the texbox will show his details
'if Chris creates an account and logs in, Chris's details would be displayed in the form3 textbox???
/code

Viewing all articles
Browse latest Browse all 27439

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>