?? 例題4.2 時間秒數計算.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "例題4.2 時間秒數計算"
ClientHeight = 4305
ClientLeft = 60
ClientTop = 450
ClientWidth = 4275
LinkTopic = "Form1"
ScaleHeight = 4305
ScaleWidth = 4275
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "計算"
Height = 495
Left = 1560
TabIndex = 7
Top = 2640
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Left = 1789
TabIndex = 2
Top = 1840
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Left = 1789
TabIndex = 1
Top = 1040
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 1789
TabIndex = 0
Top = 240
Width = 1215
End
Begin VB.Label Label1
Caption = "時"
Height = 375
Left = 1076
TabIndex = 6
Top = 360
Width = 615
End
Begin VB.Label Label4
BorderStyle = 1 'Fixed Single
Height = 495
Left = 840
TabIndex = 5
Top = 3360
Width = 2655
End
Begin VB.Label Label3
Caption = "秒"
Height = 375
Left = 1076
TabIndex = 4
Top = 1935
Width = 615
End
Begin VB.Label Label2
Caption = "分"
Height = 375
Left = 1076
TabIndex = 3
Top = 1140
Width = 615
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, m, s, x
h = Val(Text1.Text)
m = Val(Text2.Text)
s = Val(Text3.Text)
x = h * 3600 + m * 60 + s
Label4.Caption = "共有秒數:" & x
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -