⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 密码输入输出.frm

📁 VB源码,是初学者的福因.让你很快掌握VB编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
       Dim code As String
       Dim t As Integer
       Static count As Integer
start: code = InputBox("请输入密码", "密码输入框", "******", 100, 100)
       If code = "123456" Then
          MsgBox "密码正确!", 64, "确认"
       Else
          count = count + 1
          t = MsgBox("密码错误!" + Chr(10) + Chr(13) + "单击确定按钮重新输入密码" _
               + Chr(10) + Chr(13) + "单击取消按钮退出程序", 49, "警告")
       End If
       
       If t = 2 Then
           End
       ElseIf t = 1 And count <= 3 Then
           GoTo start
       Else
           End
       End If
       
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -