📄 argsdialog.frm
字号:
VERSION 5.00
Begin VB.Form argsDialog
BorderStyle = 3 'Fixed Dialog
Caption = "参数设置"
ClientHeight = 2445
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 6030
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2445
ScaleWidth = 6030
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtName
Height = 375
Left = 1560
TabIndex = 3
Top = 960
Width = 3255
End
Begin VB.TextBox txtId
Height = 375
Left = 1560
MaxLength = 2
TabIndex = 2
Top = 360
Width = 855
End
Begin VB.CommandButton CancelButton
Caption = "取消"
Height = 375
Left = 4560
TabIndex = 1
Top = 1680
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "确定"
Height = 375
Left = 3240
TabIndex = 0
Top = 1680
Width = 1215
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "名称:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 720
TabIndex = 5
Top = 1080
Width = 630
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "代码:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 720
TabIndex = 4
Top = 480
Width = 630
End
End
Attribute VB_Name = "argsDialog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Form_Activate()
txtId.Text = ""
txtName.Text = ""
txtId.SetFocus
End Sub
Private Sub okButton_Click()
On Error GoTo AddErr
cnn.Execute "insert into CATEGORIES (NUM, NAME, SUPER_CATEGORY_ID) values ('" & txtId.Text & "', '" & txtName.Text & "', " & addSuperCategoryId & "); "
Me.Hide
Exit Sub
AddErr:
MsgBox Err.Description
txtId.SetFocus
txtId.SelStart = 0
txtId.SelLength = Len(txtId.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -