0

Hi


i have managed to connect vb.net to Microsoft database access but now i am struggling with the code to authentication log in. when i log in to the form i want it to display the user name in the label in vb.net form.

Kind regards

Ricardo

Edited by bonke: clarification

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by Luc001
0

i have managed to connect vb.net to Microsoft database access but now i am struggling with the code to authentication log in. when i log in to the form i want it to display the user name in the label in vb.net form.

Hi,

After the authentication log in was succesfull your application ( second form) will open.
Here's an example to show how you can do it with just 2 forms.
Create a new testapplication and add 2 forms, in form1 add a Button1 and textbox1 and in form2 a Label1, then try this:

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Form2 As New Form2
        Form2.Label1.Text = TextBox1.Text
        Form2.Show()
    End Sub

    
End Class
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.