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

📄 form1.frm

📁 vb电子书籍
💻 FRM
字号:
   VERSION 5.00
   Begin VB.Form Form1
      BackColor       =   &H00E0E0E0&
      ClientHeight    =   1545
      ClientLeft      =   60
      ClientTop       =   345
      ClientWidth     =   5520
      FillColor       =   &H00C0C0C0&
      BeginProperty Font
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Icon            =   "Form1.frx":0000
      LinkTopic       =   "Form1"
      ScaleHeight     =   1545
      ScaleWidth      =   5520
      StartUpPosition =   2  '屏幕中心
      Begin VB.TextBox Text2
         Height          =   375
         Left            =   3600
         ScrollBars      =   2  'Vertical
         TabIndex        =   1
         Top             =   480
         Width           =   1695
      End
      Begin VB.TextBox Text1
         Height          =   375
         Left            =   1920
         ScrollBars      =   2  'Vertical
         TabIndex        =   0
         Top             =   480
         Width           =   1335
      End
      Begin VB.Label Label1
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         BorderStyle     =   1  'Fixed Single
         Caption         =   "输入数字"
         Height          =   300
         Left            =   480
         TabIndex        =   2
         Top             =   480
         Width           =   1020
      End
   End
   Attribute VB_Name = "Form1"
   Attribute VB_GlobalNameSpace = False
   Attribute VB_Creatable = False
   Attribute VB_PredeclaredId = True
   Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'******************************************************************
'************** 过程名称:Command1_Click
'************** 参数: 无
'******************************************************************
Private Sub Command1_Click()
  Text2.Text = Text1.SelText
End Sub
  
'******************************************************************
'************** 过程名称:Form_Click
'************** 参数: 无
'******************************************************************
Private Sub Form_Click()
  Text1.SelStart = 0
  Text1.SelLength = 8
  Text2.Text = Text1.SelText
End Sub
  
'******************************************************************
'************** 过程名称:Text1_Change
'************** 参数: 无
'******************************************************************
Private Sub Text1_Change()
  If IsNumeric(Text1) Then
    Text2.Text = " 正确"
  Else
    Text1.Text = ""
    Text1.SetFocus
    Text2.Text = "错误,再输入!"
  End If
End Sub

⌨️ 快捷键说明

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