📄 salary(lost n set focus).frm
字号:
VERSION 5.00
Begin VB.Form Form30
BackColor = &H00808080&
Caption = "Form30"
ClientHeight = 5370
ClientLeft = 60
ClientTop = 345
ClientWidth = 7665
ForeColor = &H00FFFFFF&
LinkTopic = "Form30"
ScaleHeight = 5370
ScaleWidth = 7665
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.CheckBox Check1
Caption = "10 and ABOVE"
Height = 615
Left = 4560
TabIndex = 10
Top = 1200
Width = 1935
End
Begin VB.CommandButton Command2
Caption = "CLEAR"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 3720
TabIndex = 9
Top = 3600
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "CALCULATE"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1200
TabIndex = 8
Top = 3600
Width = 1695
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 6240
TabIndex = 7
Top = 2400
Width = 1575
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2400
TabIndex = 6
Top = 2400
Width = 1575
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2280
TabIndex = 5
Top = 1440
Width = 1575
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 2280
TabIndex = 4
Top = 360
Width = 1575
End
Begin VB.Label Label4
Caption = "GROSS"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 4320
TabIndex = 3
Top = 2400
Width = 1575
End
Begin VB.Label Label3
Caption = "CONVEYANCE"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 2
Top = 2400
Width = 1575
End
Begin VB.Label Label2
Caption = "MEDICAL"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 1
Top = 1440
Width = 1575
End
Begin VB.Label Label1
Caption = "BASIC"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 0
Top = 360
Width = 1575
End
End
Attribute VB_Name = "Form30"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
Check1.Enabled = True
Text1.SetFocus
End Sub
Private Sub Command2_Click()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Check1.Enabled = False
Command1.SetFocus
Check1.Value = False
End Sub
Private Sub Form_Load()
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Check1.Enabled = False
End Sub
Private Sub Text3_LostFocus()
If Check1.Value = 0 Then
Text4 = (Val(Text1) + Val(Text2) + Val(Text3))
Else
Text4 = (Val(Text1) + Val(Text2) + Val(Text3) + 2000)
End If
Command2.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -