Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Essay

Building & Testing the program P2 P4 P5 M3 D2

Document preview thumbnail
Preview 2 out of 9 pages

Building & Testing the program P2 P4 P5 M3 D2. Unit 14 Event Driven Programming. Assignment B

Content preview

IMPLEMENTATION
Unit 14 Event Driven Programming




ELIOT HUNTER
Sunderland College

, Eliot Hunter (ID: 16002495) Assignment B Unit 14 Event Driven Programming




Implementation



User Interface

Sign in Form




The purpose of this form is to get the user to sign in to the whole program so they can fill out the
customers contact details, what car they want and the pricing at the end. This is the code:
Public Class FormSignIn
Dim Attempt As Integer = 0

Private Sub SignInBtn_Click(sender As Object, e As EventArgs) Handles SignInBtn.Click
Dim CorrectPassword As String = "carhire"
Dim CorrectUsername As String = "carhire"
Dim InputPassword As String = txtPassword.Text

Do Until (InputPassword = CorrectPassword) Or (Attempt = 5)
Attempt += 1
MsgBox("Password invalid", MsgBoxStyle.Critical, "Login Error.")
txtPassword.Text = ""
txtPassword.Focus()
Exit Sub
Loop

If Attempt < 5 Then
MsgBox("Welcome to Especially For you.") 'This gives the user 5 attempts to log into
the system.
Me.Hide()
FormContactDetails.Show()
Else
MsgBox("Access Denied too many times, System has locked you out.") 'If the user has
had more than 5 attempts then the system locks you out.
txtPassword.Enabled = False
SignInBtn.Enabled = False
btnHelpSignIn.Enabled = False

1|Page

Document information

Study Level
Subject
Uploaded on
November 9, 2017
Number of pages
9
Written in
2016/2017
Type
Essay
Professor(s)
Unknown
Grade
Distinction
$5.55

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TopGradedWork
2.4
(19)
Sold
47
Followers
43
Items
40
Last sold
4 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions