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

📄 form1.frm

📁 定义的延时函数 ksdfiiosois
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4935
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   4935
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   480
      TabIndex        =   6
      Text            =   "0"
      Top             =   1440
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2160
      TabIndex        =   2
      Text            =   "0"
      Top             =   840
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   480
      TabIndex        =   1
      Text            =   "0"
      Top             =   840
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   1440
      TabIndex        =   0
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Label Label3 
      Height          =   375
      Left            =   3960
      TabIndex        =   5
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "等于"
      Height          =   255
      Left            =   3240
      TabIndex        =   4
      Top             =   960
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "加上"
      Height          =   255
      Left            =   1560
      TabIndex        =   3
      Top             =   960
      Width           =   375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    
  Sub delay(intNum As Integer)
        Sleep (intNum)
  End Sub
  Private Sub Command1_Click()
        Dim i As Integer
        For i = 2 To 3
          Call delay(2000)
          'MsgBox "成功"
         If IsNumeric(Text1.Text) And IsNumeric(Text2.Text) Then
         Label3.Caption = Text1.Text + Text2.Text
         
          
    'Text1.Text = i
 
     'Text3.Text = Text2.Text * i
    End If
    Next i
          
  End Sub

⌨️ 快捷键说明

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