Visual Basic Login form and second form load

75 pts.
Tags:
Flat files
Microsoft Visual Studio
Microsoft Windows 7
Visual Basic
Visual Studio 2010
I am building an application that uses a username/passworm form for login and want to load from a flat file info relevant to the username entered in the login form.    Will the code for the reading of the flat file go in the form_load of my second form this is the code I am trying to develop with no success: Public Class frmMenu     Dim intcount As Integer     Dim Client(-1) As ClientInfo     Private Sub frmMenu_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         lblWName.Text = frmLogin.txtUsername.Text         Dim objReader As New System.IO.StreamReader("Accounts.txt")         Do Until (ClientInfo.ClientName) = lblWName.Text             With Client(Client.Length - 1)                 .Checking = objReader.ReadLine                 .Savings = objReader.ReadLine                 .ClientName = objReader.ReadLine             End With         Loop         objReader.Close()

Software/Hardware used:
Visual Studio 2010/Toshiba Satallite/Windows 7

Answer Wiki

Thanks. We'll let you know when a new response is added.

hopless answer anybody have don’t understand…

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    "with no success" What exactly does that mean ? Are you getting errors (at compile time, or run time) ? What is "ClientInfo" ? a class ? Also, what is the structure of the file ?
    69,605 pointsBadges:
    report
  • Darkstarnebula
    Thankyou. Just your response helped me out with taking a different perspective. I revised the code I had and found the answer ClientInfo was a stucture that I did not need. Good day to you
    75 pointsBadges:
    report
  • carlosdl
    Great. Thanks for the feedback.
    69,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following