📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "软件0302runnerup"
ClientHeight = 3195
ClientLeft = 2550
ClientTop = 2325
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3120
TabIndex = 6
Top = 2640
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "登录"
Height = 375
Left = 1560
TabIndex = 5
Top = 2640
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1560
PasswordChar = "*"
TabIndex = 4
Text = "admin"
Top = 1800
Width = 1455
End
Begin VB.TextBox Text1
Height = 375
Left = 1560
TabIndex = 3
Text = "admin"
Top = 960
Width = 1455
End
Begin VB.Label Label3
Caption = "密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 720
TabIndex = 2
Top = 1800
Width = 855
End
Begin VB.Label Label2
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 720
TabIndex = 1
Top = 1080
Width = 735
End
Begin VB.Label Label1
Caption = "仓库管理系统"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 1080
TabIndex = 0
Top = 240
Width = 2895
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim pubConn As New ADODB.Connection
Dim rsTable As New ADODB.Recordset
Dim strSQL As String
pubConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\runnerup.mdb" & ";" & "Persist Security Info=False"
pubConn.ConnectionTimeout = 30
pubConn.Open
rsTable.CursorLocation = adUseClient
strSQL = "select 用户名 from user11 where user11.用户名='" & Trim(Text1.Text) & "' and user11.密码='" & Trim(Text2.Text) & "'"
rsTable.Open strSQL, pubConn, adOpenDynamic, adLockOptimistic
If rsTable.EOF = True And rsTable.BOF Then
m = MsgBox("请重新登录", vbExclamation)
Text1.Text = ""
Text1.SetFocus
Else
Unload Me
Form2.Show
End If
End Sub
Private Sub RealAudio1_OnGotoURL(ByVal url As String, ByVal target As String)
End Sub
Private Sub DataCombo1_Click(Area As Integer)
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -