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

📄 form1.frm

📁 简单计算器(带密码“111111”) 进行简单的数字计算 包括“+” “-” “*” “/” “乘方”
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "rie的计算器"
   ClientHeight    =   3465
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2670
   LinkTopic       =   "Form1"
   ScaleHeight     =   3465
   ScaleWidth      =   2670
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   3255
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   2415
      Begin VB.Timer Timer1 
         Interval        =   10
         Left            =   960
         Top             =   1800
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确认(&O)"
         Height          =   495
         Left            =   240
         TabIndex        =   2
         Top             =   2400
         Width           =   855
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出(&U)"
         Height          =   495
         Left            =   1320
         TabIndex        =   3
         Top             =   2400
         Width           =   855
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   120
         MaxLength       =   6
         PasswordChar    =   "*"
         TabIndex        =   0
         Top             =   1320
         Width           =   2055
      End
      Begin VB.Label Label1 
         Caption         =   "请输入六位密码"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   15
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   600
         Width           =   2175
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "111111" Then
Form2.Show
Form1.Hide
ElseIf Text1.Text <> "111111" Then
msg = MsgBox("请输入正确的密码!", 1 + 32 + 0, "检查密码")
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Timer1_Timer()
If Label1.Left + Label1.Width > 0 Then
   Label1.Move Label1.Left - 20
Else
   Label1.Left = Form1.ScaleWidth
End If
End Sub

⌨️ 快捷键说明

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