?? frmusrquery.frm
字號:
VERSION 5.00
Begin VB.Form FrmUsrQuery
BorderStyle = 1 'Fixed Single
Caption = "管理員信息查詢"
ClientHeight = 4800
ClientLeft = 45
ClientTop = 360
ClientWidth = 7740
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 4800
ScaleWidth = 7740
Begin VB.ListBox ListUsrResult
Height = 2400
Left = 240
Sorted = -1 'True
TabIndex = 4
Top = 1800
Width = 7335
End
Begin VB.CommandButton CmdQuery
Caption = "查詢"
Height = 375
Left = 3720
TabIndex = 2
Top = 720
Width = 975
End
Begin VB.TextBox TextID
Height = 375
Left = 1440
TabIndex = 1
Top = 720
Width = 2055
End
Begin VB.CommandButton CmdCancel
Cancel = -1 'True
Caption = "返回"
Height = 375
Left = 6600
TabIndex = 0
Top = 4320
Width = 975
End
Begin VB.Label Label3
Caption = "查詢結果:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 120
TabIndex = 6
Top = 1320
Width = 1455
End
Begin VB.Label Label2
Caption = "請輸入需要查詢的管理員ID:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 120
TabIndex = 5
Top = 120
Width = 6975
End
Begin VB.Label Label1
Caption = "管理員ID:"
BeginProperty Font
Name = "楷體_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 120
TabIndex = 3
Top = 720
Width = 1575
End
End
Attribute VB_Name = "FrmUsrQuery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCancel_Click() '取消
Unload Me
End Sub
'管理員信息查詢
Private Sub CmdQuery_Click()
Dim str As String
'清空列表
Me.ListUsrResult.Clear
'檢驗輸入內容
If Len(Trim(Me.TextID.Text)) <= 0 Then
MsgBox "請輸入管理員ID!"
Exit Sub
ElseIf Len(Trim(Me.TextID.Text)) > 16 Then
MsgBox "您輸入的ID過長!"
Exit Sub
End If
'生成要發送的數據 = Usr,03,Usr_ID
str = "Usr," & "03," & Me.TextID.Text
'檢驗sock連接并向服務器發送數據
If MDIFrm.SockToSvr.State <> sckConnected Then
MsgBox "還沒有連接數據庫,不能發送請求!"
Exit Sub
End If
MDIFrm.SockToSvr.SendData str
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -