gestione password con visual basic
scrivere la chiave concordata (marino)
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} UserForm1
Caption = "UserForm1"
ClientHeight = 5325
ClientLeft = 45
ClientTop = 330
ClientWidth = 7920
OleObjectBlob = "chiave2.frx":0000
StartUpPosition = 1 'CenterOwner
End
Attribute VB_Name = "UserForm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub annulla_Click() TextBox1.Text = "" Label2.Caption = "" TextBox1.SetFocus End Sub
Private Sub Conferma_Click() Dim chiave As String chiave = Left$(TextBox1.Text, 6) If chiave = "marino" Then Frame1.Visible = False Call esegue Else Label2.Caption = "password non accettata:riprova o rinuncia" annulla.Enabled = True annulla.SetFocus End If End Sub
Public Sub esegue() Label3.Caption = "prosegue il programma" End Sub
Private Sub Frame1_Click()
End Sub
Private Sub TextBox1_Change() Dim x As String TextBox1.PasswordChar = "x" End Sub
Private Sub UserForm_Click()
End Sub