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

📄 例3.4.frm

📁 一本学习Visual Basic编程的好书
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2760
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   12
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   2760
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "关闭"
      Height          =   375
      Left            =   3360
      TabIndex        =   10
      Top             =   1800
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   375
      Left            =   3360
      TabIndex        =   9
      Top             =   1080
      Width           =   975
   End
   Begin VB.TextBox Text4 
      Alignment       =   1  'Right Justify
      Height          =   375
      Left            =   1680
      TabIndex        =   8
      Text            =   " "
      Top             =   1920
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      Alignment       =   1  'Right Justify
      Height          =   375
      Left            =   1680
      TabIndex        =   7
      Text            =   " "
      Top             =   1440
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Alignment       =   1  'Right Justify
      Height          =   390
      Left            =   1680
      TabIndex        =   6
      Text            =   " "
      Top             =   960
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1680
      TabIndex        =   5
      Top             =   120
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "秒数"
      Height          =   255
      Left            =   1080
      TabIndex        =   4
      Top             =   2040
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "分钟"
      Height          =   255
      Left            =   1080
      TabIndex        =   3
      Top             =   1560
      Width           =   495
   End
   Begin VB.Label Label3 
      Caption         =   "小时"
      Height          =   255
      Left            =   1080
      TabIndex        =   2
      Top             =   1080
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "换算为"
      Height          =   255
      Left            =   960
      TabIndex        =   1
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "总秒数"
      Height          =   255
      Left            =   840
      TabIndex        =   0
      Top             =   240
      Width           =   735
   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()
   Dim h As Integer, m As Integer, s As Integer, t As Integer
   t = Val(Text1.Text)
   h = t \ 3600
   t = t - h * 3600
   m = t \ 60
   s = t - m * 60
   Text2.Text = h
   Text3.Text = m
   Text4.Text = s
   Text1.SetFocus
End Sub
Private Sub Command2_Click()
   End
End Sub

⌨️ 快捷键说明

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