-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhone
More file actions
36 lines (26 loc) · 807 Bytes
/
Phone
File metadata and controls
36 lines (26 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'Phone'
'James McNeil 19/03/2014'
Public Class frmLogin
'Password For Phone
Private password = "Help"
'Contact Structure
Public Structure contact
Public contactName As String
Public contactNumber As String
End Structure
'List of Contacts
Public contactList As New ArrayList
'User Clicks login button
Private Sub btnLogin_Click(sender As Object, e As EventArgs) Handles btnLogin.Click
Dim enterdWord As String
'Store into Text Box String
enterdWord = txtPassword.Text
'Compare Password, MsgBox if incorrect, go to main for if Correct
If (enterdWord = password) Then
Me.Hide()
frmMenu.Show()
Else
MsgBox("Incorrect Password")
End If
End Sub
End Class