📄 usermanger.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form usermangerform
BorderStyle = 1 'Fixed Single
Caption = "用户管理"
ClientHeight = 4950
ClientLeft = 45
ClientTop = 330
ClientWidth = 4890
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4950
ScaleWidth = 4890
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "退出(&Q)"
Height = 375
Left = 3720
TabIndex = 13
Top = 4200
Width = 975
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
ItemData = "UserManger.frx":0000
Left = 960
List = "UserManger.frx":000A
TabIndex = 11
Top = 1200
Width = 1575
End
Begin VB.Data data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 0
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 0
Visible = 0 'False
Width = 1980
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "UserManger.frx":001E
Height = 3015
Left = 240
OleObjectBlob = "UserManger.frx":0032
TabIndex = 10
Top = 1680
Width = 3255
End
Begin VB.CommandButton Command
Caption = "编辑(&E)"
Height = 375
Index = 5
Left = 3720
TabIndex = 8
Top = 1200
Width = 975
End
Begin VB.CommandButton Command
Caption = "删除(&D)"
Height = 375
Index = 4
Left = 3720
TabIndex = 7
Top = 720
Width = 975
End
Begin VB.CommandButton Command
Caption = "添加(&A)"
Height = 375
Index = 3
Left = 3720
TabIndex = 6
Top = 240
Width = 975
End
Begin VB.CommandButton Command
Caption = "更新(&U)"
Height = 375
Index = 6
Left = 3720
TabIndex = 9
Top = 1680
Width = 975
End
Begin VB.CommandButton Command
Caption = "下一个(&N)"
Height = 375
Index = 2
Left = 3720
TabIndex = 5
Top = 2640
Width = 975
End
Begin VB.CommandButton Command
Caption = "前一个(&P)"
Height = 375
Index = 1
Left = 3720
TabIndex = 4
Top = 2160
Width = 975
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
MaxLength = 20
TabIndex = 3
Top = 720
Width = 2535
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 960
MaxLength = 8
TabIndex = 1
Top = 240
Width = 2535
End
Begin VB.Label Label3
Caption = "权限:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 12
Top = 1200
Width = 855
End
Begin VB.Label Label2
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 2
Top = 720
Width = 735
End
Begin VB.Label Label1
Caption = "姓名:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 0
Top = 240
Width = 735
End
End
Attribute VB_Name = "usermangerform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command_Click(Index As Integer)
UserMangerDb (Index)
Select Case Index
Case 1 To 2
Command(6).Enabled = False
Case 3
Command(6).Enabled = True
Case 5
Command(6).Enabled = True
End Select
End Sub
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
InitUserMangerform
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -