practice4_4.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 35 行

FRM
35
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "请单击窗体开始输入数据"
   ClientHeight    =   1770
   ClientLeft      =   7005
   ClientTop       =   6060
   ClientWidth     =   4530
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   15.75
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   1770
   ScaleWidth      =   4530
   StartUpPosition =   2  '屏幕中心
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
   h = Val(InputBox("请输入小时", "将时间转换成秒", "0"))
   m = Val(InputBox("请输入分", "将时间转换成秒", "0"))
   s = Val(InputBox("请输入秒", "将时间转换成秒", "0"))
   Total = h * 3600 + m * 60 + s
   Print h; "小时"; m; "分"; s; "秒="; Total; "秒"
End Sub

⌨️ 快捷键说明

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