form3.frm

来自「简单的打字练习程序,可自定义练习的文章」· FRM 代码 · 共 141 行

FRM
141
字号
VERSION 5.00
Begin VB.Form Form3 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form3"
   ClientHeight    =   3075
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3780
   ControlBox      =   0   'False
   LinkTopic       =   "Form3"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3075
   ScaleWidth      =   3780
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   600
      TabIndex        =   6
      Top             =   2520
      Width           =   2295
   End
   Begin VB.Frame Frame1 
      Height          =   2295
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   3255
      Begin VB.Label Label 
         Height          =   255
         Index           =   5
         Left            =   1800
         TabIndex        =   11
         Top             =   1680
         Width           =   1095
      End
      Begin VB.Label Label 
         Height          =   255
         Index           =   4
         Left            =   1800
         TabIndex        =   10
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label 
         Height          =   255
         Index           =   3
         Left            =   1800
         TabIndex        =   9
         Top             =   960
         Width           =   1095
      End
      Begin VB.Label Label 
         Height          =   255
         Index           =   2
         Left            =   1800
         TabIndex        =   8
         Top             =   600
         Width           =   1095
      End
      Begin VB.Label Label 
         Height          =   255
         Index           =   1
         Left            =   1800
         TabIndex        =   7
         Top             =   240
         Width           =   1095
      End
      Begin VB.Label Label5 
         Caption         =   "速度(字数/分):"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1800
         Width           =   1575
      End
      Begin VB.Label Label4 
         Caption         =   "使用时间(秒):"
         Height          =   255
         Left            =   120
         TabIndex        =   4
         Top             =   1440
         Width           =   1575
      End
      Begin VB.Label Label3 
         Caption         =   "正确字数:"
         Height          =   255
         Left            =   120
         TabIndex        =   3
         Top             =   1080
         Width           =   1575
      End
      Begin VB.Label Label2 
         Caption         =   "错误字数:"
         Height          =   255
         Left            =   120
         TabIndex        =   2
         Top             =   720
         Width           =   1575
      End
      Begin VB.Label Label1 
         Caption         =   "总字数:"
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   1575
      End
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim sd As Integer
Dim a As Integer
Private Sub Command1_Click()
If Form2.Caption = "打字测试" Then
    End
Else
    If Form2.time1.Caption = "0" Then
        Dim aa As VbMsgBoxResult
        aa = MsgBox("是否继续?", 36)
        If aa = vbYes Then
            Form2.RichTextBox1(1).Locked = False
            Form2.Show
            Unload Me
        Else
            End
        End If
    Else
        End
    End If
End If
End Sub

⌨️ 快捷键说明

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