current code is.
[b]If txt12.Text = variable Then txt11[/b](dont know the rest of it.




Posted 01 March 2013 - 01:29 PM
[b]If txt12.Text = variable Then txt11[/b](dont know the rest of it.
Posted 01 March 2013 - 01:33 PM
If txt12.Text = variable Then
txt11.Text = "Whatever"
End If
Posted 03 March 2013 - 10:39 AM
Posted 03 March 2013 - 12:56 PM
andrewsw, on 01 March 2013 - 01:33 PM, said:
If txt12.Text = variable Then
txt11.Text = "Whatever"
End If
Private Sub txtcpasswordstatus_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtcombination.TextChanged If password = Text Then txtpasswordstatus.Text = "secure" end sub end class
Public Class frmthepasswordprotection
'global variable'
Dim combination As String = ""
Posted 03 March 2013 - 01:07 PM
If password = Text
If password = txtcpasswordstatus.Text
This post has been edited by andrewsw: 03 March 2013 - 01:07 PM
Posted 03 March 2013 - 01:44 PM
Posted 03 March 2013 - 02:12 PM
MessageBox.Show(password) 'and MessageBox.Show(txtcpasswordstatus.Text)
If password = txtcpasswordstatus.Text
Posted 03 March 2013 - 02:17 PM
Posted 03 March 2013 - 02:25 PM
IronRazer, on 03 March 2013 - 02:17 PM, said:
Posted 03 March 2013 - 02:35 PM
sammy11, on 03 March 2013 - 02:25 PM, said:
If password = txtCPasswordStatus.Text Then
Posted 03 March 2013 - 03:00 PM
Private Sub btnPassword_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPassword.Click
If txtPassword.Text = "Locked" Then
MsgBox("You must unlock the safe before trying to change the Password", MsgBoxStyle.Information)
Else
Password = InputBox("Set a Password")
If Password.Length <= 5 Then MsgBox("Must be longer than 5 characters")
If Password= txtPasswordStatus.Text Then txtPasswordStatus.Text = "Locked"
End If
End Sub
Posted 03 March 2013 - 04:11 PM
If Password= txtPasswordStatus.Text Then txtPasswordStatus.Text = "Locked"
Posted 03 March 2013 - 04:20 PM
IronRazer, on 03 March 2013 - 04:11 PM, said:
If Password= txtPasswordStatus.Text Then txtPasswordStatus.Text = "Locked"
sammy11, on 03 March 2013 - 04:19 PM, said:
IronRazer, on 03 March 2013 - 04:11 PM, said:
If Password= txtPasswordStatus.Text Then txtPasswordStatus.Text = "Locked"
Posted 03 March 2013 - 04:30 PM
Posted 03 March 2013 - 04:32 PM
Private Sub btnPassword_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPassword.Click
If txtPassword.Text = "Locked" Then
MsgBox("You must unlock the safe before trying to change the Password", MsgBoxStyle.Information)
Else
Password = InputBox("Set a Password")
If password.Length <= 5 Then
MsgBox("Must be longer than 5 characters")
Else
If password <> "" Then txtPassword.Text = "Locked"
End If
End If
End Sub
