form1.frm
来自「上传的包含两个文件」· FRM 代码 · 共 170 行
FRM
170 行
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 5025
ClientLeft = 60
ClientTop = 450
ClientWidth = 7275
LinkTopic = "Form1"
ScaleHeight = 5025
ScaleWidth = 7275
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 1
Left = 360
Top = 2520
End
Begin VB.ListBox List1
Height = 600
ItemData = "Form1.frx":0000
Left = 240
List = "Form1.frx":000A
TabIndex = 9
Top = 3720
Visible = 0 'False
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "开始"
Height = 615
Left = 240
TabIndex = 8
Top = 4320
Width = 1335
End
Begin VB.Frame Frame1
Caption = "系统时间"
Height = 1575
Left = 1320
TabIndex = 5
Top = 1200
Visible = 0 'False
Width = 2295
Begin VB.Label Label2
Height = 495
Left = 360
TabIndex = 7
Top = 960
Width = 1215
End
Begin VB.Label Label1
Caption = "现在时间是:"
Height = 375
Left = 360
TabIndex = 6
Top = 360
Width = 1455
End
End
Begin VB.TextBox Text1
Height = 1455
Left = 4680
MultiLine = -1 'True
TabIndex = 4
Text = "Form1.frx":001E
Top = 1200
Width = 2175
End
Begin VB.CheckBox Check1
Caption = "斜体"
Height = 615
Index = 1
Left = 4080
TabIndex = 3
Top = 120
Width = 975
End
Begin VB.CheckBox Check1
Caption = "粗体"
Height = 615
Index = 0
Left = 2640
TabIndex = 2
Top = 120
Width = 975
End
Begin VB.OptionButton Option1
Caption = "隐藏"
Height = 495
Index = 1
Left = 1320
TabIndex = 1
Top = 240
Width = 975
End
Begin VB.OptionButton Option1
Caption = "显示"
Height = 495
Index = 0
Left = 360
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click(Index As Integer)
If Check1(Index).Value = 1 Then
Select Case Index
Case 0
Text1.FontBold = True
Case 1
Text1.FontItalic = True
End Select
End If
If Check1(Index).Value = 0 Then
Select Case Index
Case 0
Text1.FontBold = False
Case 1
Text1.FontItalic = False
End Select
End If
End Sub
Private Sub Command1_Click()
List1.Visible = True
End Sub
Private Sub Form_Load()
Frame1.Visible = False
Timer1.Enabled = False
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Frame1.Visible = False
List1.Visible = False
End Sub
Private Sub List1_Click()
If List1.Selected(0) = True Then
Frame1.Visible = True
Timer1.Enabled = True
Else
Frame1.Visible = False
Timer1.Enabled = False
End If
If List1.Selected(1) = True Then
End
End If
End Sub
Private Sub Option1_Click(Index As Integer)
Select Case Index
Case 0
Text1.Visible = True
Case 1
Text1.Visible = False
End Select
End Sub
Private Sub Timer1_Timer()
Label2.Caption = Time
Frame1.Visible = True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?