📄 form3.frm
字号:
VERSION 5.00
Begin VB.Form Form3
Caption = "二板"
ClientHeight = 8760
ClientLeft = 60
ClientTop = 450
ClientWidth = 11205
LinkTopic = "Form3"
Picture = "Form3.frx":0000
ScaleHeight = 8760
ScaleWidth = 11205
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text16
Alignment = 2 'Center
Height = 495
Left = 8760
TabIndex = 29
Text = "输入十六"
Top = 6960
Width = 1215
End
Begin VB.TextBox Text15
Alignment = 2 'Center
Height = 495
Left = 6360
TabIndex = 28
Text = "输入十五"
Top = 6960
Width = 1215
End
Begin VB.Timer Timer1
Left = 9840
Top = 3480
End
Begin VB.TextBox Text14
Alignment = 2 'Center
Height = 495
Left = 3840
TabIndex = 27
Text = "输入十四"
Top = 6960
Width = 1215
End
Begin VB.TextBox Text13
Alignment = 2 'Center
Height = 495
Left = 1560
TabIndex = 26
Text = "输入十三"
Top = 6960
Width = 1215
End
Begin VB.TextBox Text12
Alignment = 2 'Center
Height = 495
Left = 9360
TabIndex = 25
Text = "输入十二"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text11
Alignment = 2 'Center
Height = 495
Left = 7680
TabIndex = 24
Text = "输入十一"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text10
Alignment = 2 'Center
Height = 495
Left = 5760
TabIndex = 23
Text = "输入十"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text9
Alignment = 2 'Center
Height = 495
Left = 3960
TabIndex = 22
Text = "输入九"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text8
Alignment = 2 'Center
Height = 495
Left = 2280
TabIndex = 21
Text = "输入八"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text7
Alignment = 2 'Center
Height = 495
Left = 480
TabIndex = 20
Text = "输入七"
Top = 5880
Width = 1215
End
Begin VB.TextBox Text6
Alignment = 2 'Center
Height = 495
Left = 9360
TabIndex = 19
Text = "输入六"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text5
Alignment = 2 'Center
Height = 495
Left = 7680
TabIndex = 18
Text = "输入五"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text4
Alignment = 2 'Center
Height = 495
Left = 5760
TabIndex = 17
Text = "输入四"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text3
Alignment = 2 'Center
Height = 495
Left = 3960
TabIndex = 16
Text = "输入三"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Height = 495
Left = 2280
TabIndex = 15
Text = "输入二"
Top = 4920
Width = 1215
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 495
Left = 480
TabIndex = 14
Text = "输入一"
Top = 4920
Width = 1215
End
Begin VB.CommandButton Command14
Caption = "二组总控制"
Height = 495
Left = 7320
Style = 1 'Graphical
TabIndex = 13
Top = 3240
Width = 1575
End
Begin VB.CommandButton Command13
Caption = "一组总控制"
Height = 495
Left = 2400
Style = 1 'Graphical
TabIndex = 12
Top = 3240
Width = 1695
End
Begin VB.CommandButton Command12
Caption = "输出十二"
Height = 495
Left = 9480
Style = 1 'Graphical
TabIndex = 11
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command11
Caption = "输出十一"
Height = 495
Left = 7680
Style = 1 'Graphical
TabIndex = 10
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command10
Caption = "输出十"
Height = 495
Left = 5880
Style = 1 'Graphical
TabIndex = 9
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command9
Caption = "输出九"
Height = 495
Left = 4080
Style = 1 'Graphical
TabIndex = 8
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command8
Caption = "输出八"
Height = 495
Left = 2400
Style = 1 'Graphical
TabIndex = 7
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command7
Caption = "输出七"
Height = 495
Left = 480
Style = 1 'Graphical
TabIndex = 6
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command6
Caption = "输出六"
Height = 495
Left = 9480
Style = 1 'Graphical
TabIndex = 5
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command5
Caption = "输出五"
Height = 495
Left = 7680
Style = 1 'Graphical
TabIndex = 4
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "输出四"
Height = 495
Left = 5880
Style = 1 'Graphical
TabIndex = 3
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "输出三"
Height = 495
Left = 4080
Style = 1 'Graphical
TabIndex = 2
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "输出二"
Height = 495
Left = 2400
Style = 1 'Graphical
TabIndex = 1
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "输出一"
Height = 495
Left = 480
Style = 1 'Graphical
TabIndex = 0
Top = 1200
Width = 1215
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form1.B1_flag = True
End Sub
Private Sub Command10_Click()
Form1.B10_flag = True
End Sub
Private Sub Command11_Click()
Form1.B11_flag = True
End Sub
Private Sub Command12_Click()
Form1.B12_flag = True
End Sub
Private Sub Command13_Click()
Form1.B13_flag = True
End Sub
Private Sub Command14_Click()
Form1.B14_flag = True
End Sub
Private Sub Command2_Click()
Form1.B2_flag = True
End Sub
Private Sub Command3_Click()
Form1.B3_flag = True
End Sub
Private Sub Command4_Click()
Form1.B4_flag = True
End Sub
Private Sub Command5_Click()
Form1.B5_flag = True
End Sub
Private Sub Command6_Click()
Form1.B6_flag = True
End Sub
Private Sub Command7_Click()
Form1.B7_flag = True
End Sub
Private Sub Command8_Click()
Form1.B8_flag = True
End Sub
Private Sub Command9_Click()
Form1.B9_flag = True
End Sub
Private Sub Form_Load()
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
If (Form1.in_B1 = True) Then
Text1.BackColor = &HFF&
Else
Text1.BackColor = &HFF00&
End If
If (Form1.in_B2 = True) Then
Text2.BackColor = &HFF&
Else
Text2.BackColor = &HFF00&
End If
If (Form1.in_B3 = True) Then
Text3.BackColor = &HFF&
Else
Text3.BackColor = &HFF00&
End If
If (Form1.in_B4 = True) Then
Text4.BackColor = &HFF&
Else
Text4.BackColor = &HFF00&
End If
If (Form1.in_B5 = True) Then
Text5.BackColor = &HFF&
Else
Text5.BackColor = &HFF00&
End If
If (Form1.in_B6 = True) Then
Text6.BackColor = &HFF&
Else
Text6.BackColor = &HFF00&
End If
If (Form1.in_B7 = True) Then
Text7.BackColor = &HFF&
Else
Text7.BackColor = &HFF00&
End If
If (Form1.in_B8 = True) Then
Text8.BackColor = &HFF&
Else
Text8.BackColor = &HFF00&
End If
If (Form1.in_B9 = True) Then
Text9.BackColor = &HFF&
Else
Text9.BackColor = &HFF00&
End If
If (Form1.in_B10 = True) Then
Text10.BackColor = &HFF&
Else
Text10.BackColor = &HFF00&
End If
If (Form1.in_B11 = True) Then
Text11.BackColor = &HFF&
Else
Text11.BackColor = &HFF00&
End If
If (Form1.in_B12 = True) Then
Text12.BackColor = &HFF&
Else
Text12.BackColor = &HFF00&
End If
If (Form1.in_B13 = True) Then
Text13.BackColor = &HFF&
Else
Text13.BackColor = &HFF00&
End If
If (Form1.in_B14 = True) Then
Text14.BackColor = &HFF&
Else
Text14.BackColor = &HFF00&
End If
If (Form1.in_B15 = True) Then
Text15.BackColor = &HFF&
Else
Text15.BackColor = &HFF00&
End If
If (Form1.in_B16 = True) Then
Text16.BackColor = &HFF&
Else
Text16.BackColor = &HFF00&
End If
If Form1.out_B1 = True Then
Command1.BackColor = &HFF&
Else
Command1.BackColor = &HFF00&
End If
If Form1.out_B2 = True Then
Command2.BackColor = &HFF&
Else
Command2.BackColor = &HFF00&
End If
If Form1.out_B3 = True Then
Command3.BackColor = &HFF&
Else
Command3.BackColor = &HFF00&
End If
If Form1.out_B4 = True Then
Command4.BackColor = &HFF&
Else
Command4.BackColor = &HFF00&
End If
If Form1.out_B5 = True Then
Command5.BackColor = &HFF&
Else
Command5.BackColor = &HFF00&
End If
If Form1.out_B6 = True Then
Command6.BackColor = &HFF&
Else
Command6.BackColor = &HFF00&
End If
If Form1.out_B7 = True Then
Command7.BackColor = &HFF&
Else
Command7.BackColor = &HFF00&
End If
If Form1.out_B8 = True Then
Command8.BackColor = &HFF&
Else
Command8.BackColor = &HFF00&
End If
If Form1.out_B9 = True Then
Command9.BackColor = &HFF&
Else
Command9.BackColor = &HFF00&
End If
If Form1.out_B10 = True Then
Command10.BackColor = &HFF&
Else
Command10.BackColor = &HFF00&
End If
If Form1.out_B11 = True Then
Command11.BackColor = &HFF&
Else
Command11.BackColor = &HFF00&
End If
If Form1.out_B12 = True Then
Command12.BackColor = &HFF&
Else
Command12.BackColor = &HFF00&
End If
If Form1.out_B14 = True Then
Command13.BackColor = &HFF&
Else
Command13.BackColor = &HFF00&
End If
If Form1.out_B16 = True Then
Command14.BackColor = &HFF&
Else
Command14.BackColor = &HFF00&
End If
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -