Re: I need help with a login form too
From: Tom Leylan (gee_at_iamtiredofspam.com)
Date: 03/07/04
- Next message: Tom Leylan: "Re: primary key problem !!! what to do?"
- Previous message: Herfried K. Wagner [MVP]: "Re: how do you print RTF"
- In reply to: carr4895: "Re: I need help with a login form too"
- Next in thread: Gerry O'Brien [MVP]: "Re: I need help with a login form too"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 7 Mar 2004 18:45:58 -0500
There is probably little reason to continue the conversation but I'll take
one more stab at it.
> I am a good person.
Nobody posted "you're a bad person."
> And I am not a guy either.
Nobody suggested that you were and nobody cares if you are or aren't.
> I was having trouble with cut, copy, and paste too but I am
> not going to ask for any help.
That's your choice... I surely don't understand your decision but it is your
decision to make.
> I was also going to have you look at my slot machine game because
> i thought it would be cool for you people to see it, but not anymore.
Trust me we can write a slot machine program also. If not individually
certainly as a group :-)
> Here is what I had before I even posted
You should have considered posting your code earlier then we could have made
suggestions for improvement. Please note (you seem intent on ignoring this)
you simply posted the "specs" which clearly was a homework assignment.
Personally I would give you a C as the code probably works. It is far from
elegant but you have to start somewhere.
Best of luck to you... the offer for you to post "answers" as a way to learn
remains open BTW.
"carr4895" <CARR4895@YAHOO.COM> wrote in message
news:f83fd191.0403071429.70ddacc8@posting.google.com...
> I just needed help. I am so sorry for asking and for putting the
> whole thing in. I am usually good at this kind of stuff but the
> password part was hard for me. That is what i was having trouble
> with. So don't critize mem. I am a good person. And I am not a guy
> either. I was having trouble with cut, copy, and paste too but I am
> not going to ask for any help. I was also going to have you look at
> my slot machine game because i thought it would be cool for you people
> to see it, but not anymore. Here is what I had before I even posted
> the question.
> Thanks
> Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles btnOK.Click
> Dim strCapPass As String
> 'This line makes sure a User Name is entered.
> 'If not, it displays a message and exits the procedure.
> If txtUserName.Text = "" Then
> Unload.Me()
> Else
> MessageBox.Show("Must Enter User Name!", "Login")
> txtUserName.Focus()
> End If
> 'This line changes this text to capital letters
> strCapPass = UCase(txtPassword.Text)
> 'This select statement checks the password
> Select Case strCapPass
> Case "IT160"
> Unload(Me)
> Case "VB2MANAGER"
> Unload(Me)
> Case "BACKDOOR"
> Unload(Me)
> Case Else
> 'Count how many times there is an invalid password
> mintInvalPass = mintInvalPass + 1
> 'if there is less than three display the message
> If mintInvalPass < 3 Then
> MessageBox.Show("Invalid Password, try again!",
> "Login")
> 'This line set the cursor in the txtPassword
> textbox
> txtPassword.Focus()
> Else
> 'if there is more than three display sorry message
> MessageBox.Show("Sorry, You Only get Three Trys!",
> "Login")
> End
> End If
> End Select
> End Sub
> I just had trouble converting it to VB.NET. Oh well.
> Bye.
> Then unload me part was confusing me.
>
> "Tom Leylan" <gee@iamtiredofspam.com> wrote in message
news:<e4VBLovAEHA.2444@TK2MSFTNGP10.phx.gbl>...
> > You forgot to include the e-mail address of your instructor... or will
you
> > handle the part where you turn it in for a grade?
> >
> > Is there any part of the lesson which you are not confused about? We
could
> > build from there unless you just want the A+ and prefer to skip the
coding
> > part of things?
> >
> > "carr4895" <CARR4895@YAHOO.COM> wrote...
> > > Hello.
> > > I was wondering if someone could help me too with a login form. Upon
> > > startup, I have to display a password screen and it should accept a
> > > user name and password. User name can be anything non-blank. If
> > > there is no user name, an appropriate error message must be displayed.
> > > All of the following passwords are valid IT160, VB2Manager, BackDoor.
> > > No other password is valid. It must allow the user to enter the
> > > password in any case. If an invalid password is enterd, i need to
> > > display an appropriate message. If no password is entered or if the
> > > password is incorrect after three tries, display a sorry message and
> > > exit the program. I am using VB.Net and it is an MDI form. Ineed to
> > > display the password screen then the splash screen and the the parent
> > > form. Please help. I am so confused. Thanks
- Next message: Tom Leylan: "Re: primary key problem !!! what to do?"
- Previous message: Herfried K. Wagner [MVP]: "Re: how do you print RTF"
- In reply to: carr4895: "Re: I need help with a login form too"
- Next in thread: Gerry O'Brien [MVP]: "Re: I need help with a login form too"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|