how i make welcome code

January 8, 2013 at 10:45:08
Specs: Windows 7
how i make welcome code dependent on the user name info from the first login form
it doesnt matter where i put the welcome just how to make it
i tried this code
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim myfile As New System.IO.StreamReader(Application.StartupPath & "\UserNames.txt")

While Not myfile.EndOfStream
Dim user As New Class1
user.User_Name = myfile.ReadLine
user.First = myfile.ReadLine
user.Last = myfile.ReadLine
user.Password = myfile.ReadLine

All_Users.Add(user)
End While
myfile.Close()
Dim welcome As New Class1

this one here --->lblname.Text = welcome.First & welcome.Last ----is it right ?? i think i need a for loop but idk how ^^

End Sub


See More: how i make welcome code

Report •


#1
January 10, 2013 at 06:25:02
this one here --->lblname.Text = welcome.First & welcome.Last ----is it right ??
Ignoring that you're using a text file to transfer data between forms, I do not see this "welcome" object in the code you provided.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question