📄 dialogs.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form dialogs
BorderStyle = 1 'Fixed Single
Caption = "设置用户密码"
ClientHeight = 4104
ClientLeft = 48
ClientTop = 336
ClientWidth = 3720
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4104
ScaleWidth = 3720
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "退 出(&E)"
Height = 375
Left = 2400
TabIndex = 9
Top = 2760
Width = 1215
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "dialogs.frx":0000
Height = 1455
Left = 240
TabIndex = 8
Top = 1560
Width = 1815
_ExtentX = 3196
_ExtentY = 2561
_Version = 393216
AllowUpdate = 0 'False
Appearance = 0
HeadLines = 1
RowHeight = 15
RowDividerStyle = 5
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 1
BeginProperty Column00
DataField = "用户"
Caption = "用户"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
MarqueeStyle = 0
AllowRowSizing = 0 'False
AllowSizing = 0 'False
BeginProperty Column00
DividerStyle = 3
Object.Visible = -1 'True
ColumnWidth = 1500.095
EndProperty
EndProperty
End
Begin VB.CommandButton Command3
Caption = "更改用户密码(M)"
Height = 375
Left = 240
TabIndex = 7
Top = 3240
Width = 1815
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 2400
Top = 3720
Visible = 0 'False
Width = 1215
_ExtentX = 2138
_ExtentY = 656
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\毕业设计\设计\数据库\用户管理.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\毕业设计\设计\数据库\用户管理.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "用户列表"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command2
Caption = "删 除(D)"
Height = 375
Left = 2400
TabIndex = 6
Top = 2160
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "新用户(N)"
Height = 375
Left = 2400
TabIndex = 5
Top = 1560
Width = 1215
End
Begin VB.TextBox Text2
BackColor = &H80000000&
BorderStyle = 0 'None
Enabled = 0 'False
Height = 255
Left = 120
TabIndex = 4
Text = "用户(U)"
Top = 1200
Width = 855
End
Begin VB.TextBox Text1
BackColor = &H80000000&
BorderStyle = 0 'None
Enabled = 0 'False
Height = 615
Left = 960
MultiLine = -1 'True
TabIndex = 3
Top = 720
Width = 2535
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H80000000&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 495
Left = 120
ScaleHeight = 492
ScaleWidth = 612
TabIndex = 1
Top = 600
Width = 615
End
Begin MSComctlLib.TabStrip TabStrip1
Height = 4095
Left = 0
TabIndex = 0
Top = 0
Width = 3735
_ExtentX = 6583
_ExtentY = 7218
MultiRow = -1 'True
TabStyle = 1
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
Caption = "用户列表"
ImageVarType = 2
EndProperty
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label1
Height = 495
Left = 840
TabIndex = 2
Top = 720
Width = 2775
End
End
Attribute VB_Name = "dialogs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dialog.Show
Dialog.SetFocus
End Sub
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = "增加新用户"
End Sub
Private Sub Command2_Click()
If Adodc1.Recordset.RecordCount <> 0 Then
Adodc1.Recordset.Delete
Else
MsgBox "无用户设置", 64, "错误"
End If
End Sub
Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = "删除一名用户"
End Sub
Private Sub Command3_Click()
dialogsecret.Show
dialogsecret.SetFocus
End Sub
Private Sub Command3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = "更改用户密码"
End Sub
Private Sub Command4_Click()
dialogs.Hide
Set dialogs = Nothing
End Sub
Private Sub Command4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = "退出"
End Sub
Private Sub DataGrid1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = "用户列表"
End Sub
Private Sub TabStrip1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MDIForm1.StatusBar1.Panels(1) = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -