📄 强行导入.frm
字号:
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form strongin
BorderStyle = 3 'Fixed Dialog
Caption = "管理员导入密码框"
ClientHeight = 2610
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 4440
Icon = "强行导入.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2610
ScaleWidth = 4440
ShowInTaskbar = 0 'False
Begin MSDataListLib.DataCombo UserNameCombo
Height = 330
Left = 1320
TabIndex = 5
Top = 600
Width = 2655
_ExtentX = 4683
_ExtentY = 582
_Version = 393216
Text = ""
End
Begin VB.TextBox userPassword
Height = 375
Left = 1320
TabIndex = 2
Top = 1200
Width = 2655
End
Begin VB.CommandButton CancelButton
Caption = "取消"
Height = 375
Left = 2760
TabIndex = 1
Top = 2040
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "确定"
Height = 375
Left = 1320
TabIndex = 0
Top = 2040
Width = 1215
End
Begin VB.Label Label2
Caption = "管理密码"
Height = 255
Left = 240
TabIndex = 4
Top = 1320
Width = 975
End
Begin VB.Label Label1
Caption = "管理员帐号"
Height = 375
Left = 240
TabIndex = 3
Top = 600
Width = 1095
End
End
Attribute VB_Name = "strongin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rsUSER As New ADODB.Recordset
Dim sqluser As String
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Form_Load()
MakeCenter Me
sqluser = "select * from 技术人员"
Call rsUSER.open(sqluser, cn, adOpenKeyset, adLockOptimistic, -1)
Set UserNameCombo.RowSource = rsUSER
UserNameCombo.BoundColumn = "UseID"
UserNameCombo.ListField = "UserName"
UserNameCombo.BoundText = "1"
End Sub
Private Sub OKButton_Click()
IsAdmin = True
Unload Me
End Sub
Private Sub userPassword_KeyPress(KeyAscii As Integer)
On Error Resume Next
If KeyAscii = 13 Then OKButton_Click
End Sub
Private Sub UserNameCombo_KeyPress(KeyAscii As Integer)
On Error Resume Next
If KeyAscii = 13 Then userPassword.SetFocus
End Sub
Private Sub Form_Unload(Cancel As Integer)
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -