📄 frmdormcheck.frm
字号:
VERSION 5.00
Object = "{CFA7AFF4-3242-4269-9172-7389D695AE01}#1.0#0"; "stonexp.ocx"
Begin VB.Form frmDormCheck
BorderStyle = 1 'Fixed Single
Caption = "宿舍信息查询"
ClientHeight = 990
ClientLeft = 45
ClientTop = 435
ClientWidth = 5415
Icon = "frmDormCheck.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 990
ScaleWidth = 5415
StartUpPosition = 3 '窗口缺省
Begin StoneXP.XPFrame XPFrame1
Height = 975
Left = 0
TabIndex = 0
Top = 0
Width = 5415
_ExtentX = 9551
_ExtentY = 1720
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Begin VB.TextBox txtNo
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1320
TabIndex = 1
Top = 360
Width = 1815
End
Begin StoneXP.XPButton cmbCheck
Default = -1 'True
Height = 375
Left = 3360
TabIndex = 3
Top = 360
Width = 855
_ExtentX = 1508
_ExtentY = 661
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "查询"
MouseIcon = "frmDormCheck.frx":06EA
MousePointer = 99
End
Begin StoneXP.XPButton cmbCancle
Height = 375
Left = 4320
TabIndex = 4
Top = 360
Width = 855
_ExtentX = 1508
_ExtentY = 661
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "取消"
MouseIcon = "frmDormCheck.frx":0A04
MousePointer = 99
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
Caption = "宿舍编号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 240
TabIndex = 2
Top = 480
Width = 1095
End
End
End
Attribute VB_Name = "frmDormCheck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmbCancle_Click()
'按取消按钮时显示所有宿舍信息
QuaryString = "select * from dorm"
Unload Me
End Sub
Private Sub cmbCheck_Click()
'根据输入内容生成查询语句(QuaryString)
If Trim(txtNo.Text) = "" Then
MsgBox "请输入查询条件!", vbOKOnly + vbExclamation, "提示"
Exit Sub
End If
QuaryString = "select * from dorm where"
QuaryString = QuaryString & " Dor_Id='" & Trim(txtNo.Text) & "'"
Unload Me
End Sub
Private Sub Form_Load()
XPFrame1.BackColor = RGB(198, 229, 211) '设置背景颜色
Me.Left = frmMain.Left + (frmMain.Width - Me.Width) / 2 '设置窗体显示位置
Me.Top = frmMain.Top + (frmMain.Height - Me.Height) / 2 '设置窗体显示位置
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -