fpform.frm
来自「一套VB完整的灯具销售管理系统设计」· FRM 代码 · 共 101 行
FRM
101 行
VERSION 5.00
Begin VB.Form FpForm
BackColor = &H00808000&
BorderStyle = 3 'Fixed Dialog
ClientHeight = 1095
ClientLeft = 45
ClientTop = 45
ClientWidth = 5565
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1095
ScaleWidth = 5565
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton CloseForm
Cancel = -1 'True
Caption = "取消(&C)"
Height = 375
Left = 4260
TabIndex = 3
Top = 570
Width = 1050
End
Begin VB.CommandButton Sure
Caption = "查找"
Default = -1 'True
Enabled = 0 'False
Height = 375
Left = 4260
TabIndex = 2
Top = 150
Width = 1050
End
Begin VB.TextBox Text1
Height = 285
Left = 2265
TabIndex = 1
Top = 360
Width = 1635
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请输入发票号码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FFFF&
Height = 240
Left = 300
TabIndex = 0
Top = 360
Width = 1920
End
End
Attribute VB_Name = "FpForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Closeform_Click()
Unload Me
End Sub
Private Sub Sure_Click()
Dim Str
Str = "发票号='" & Trim(Text1.Text) & "'"
FpFind.Data1.Recordset.FindFirst Str
If FpFind.Data1.Recordset.NoMatch Then
MsgBox "没有找到 " & Trim(Text1.Text) & " 发票号,请再试试!", vbOKOnly + 32, "查找发票"
Exit Sub
Else
FpFind.DBList1.Text = Trim(Text1.Text)
Unload Me
Exit Sub
End If
End Sub
Private Sub Text1_Change()
If Trim(Text1.Text) = "" Then
sure.Enabled = False
Else
sure.Enabled = True
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
sure.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?