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
Essay

Building & Testing the program P2 P4 P5 M3 D2

Rating
-
Sold
1
Pages
9
Grade
Distinction
Uploaded on
09-11-2017
Written in
2016/2017

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

Institution
Course

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

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
November 9, 2017
Number of pages
9
Written in
2016/2017
Type
ESSAY
Professor(s)
Unknown
Grade
Distinction

Subjects

$5.60
Get access to the full document:

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


Also available in package deal

Get to know the seller

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 OCR
Follow You need to be logged in order to follow users or courses
Sold
47
Member since
8 year
Number of followers
43
Documents
40
Last sold
3 year ago

Studying a Level 3 BTEC EXTENDED DIPLOMA (90 CREDIT) IN IT (SOFTWARE DEVELOPMENT) YEAR 2, I got a D*D* for my first year of work which is being promoted on Stuvia for people to read

2.4

19 reviews

5
2
4
3
3
4
2
2
1
8

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