📄 xiugaishuju.frm
字号:
VERSION 5.00
Begin VB.Form xiugaishuju
Caption = "输入工资"
ClientHeight = 1710
ClientLeft = 60
ClientTop = 450
ClientWidth = 3390
LinkTopic = "Form1"
ScaleHeight = 1710
ScaleWidth = 3390
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text1
Appearance = 0 'Flat
Height = 270
Left = 360
TabIndex = 2
Top = 360
Width = 2535
End
Begin VB.CommandButton Command1
Caption = "确定"
Default = -1 'True
Height = 375
Left = 360
TabIndex = 1
Top = 960
Width = 855
End
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 2040
TabIndex = 0
Top = 960
Width = 855
End
End
Attribute VB_Name = "xiugaishuju"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public Cancel As Boolean '窗体是否取消判断标志
Private Sub Command1_Click()
If Text1.Text = "" Then '用户修改数据完整性和有效性判断
MsgBox "工资不能为空!", vbCritical
Text1.SetFocus
Exit Sub
End If
If Not IsNumeric(Text1.Text) Then
MsgBox "工资必须是数字!", vbCritical
Text1.SetFocus
Exit Sub
End If
Cancel = True '设置窗体结果状态是--确认
Me.Hide '返回
End Sub
Private Sub Command2_Click()
Cancel = False '设置窗体结果状态是--取消
Me.Hide '返回
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -