📄 frmdeluser.frm
字号:
VERSION 5.00
Begin VB.Form frmDelUser
BorderStyle = 3 'Fixed Dialog
Caption = "《数据结构》算法速查器"
ClientHeight = 3705
ClientLeft = 45
ClientTop = 435
ClientWidth = 5175
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3705
ScaleWidth = 5175
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3840
TabIndex = 2
Top = 3000
Width = 975
End
Begin VB.CommandButton Cmd_Del
Caption = "删除"
Height = 375
Left = 2640
TabIndex = 1
Top = 3000
Width = 975
End
Begin VB.ListBox List_user
Height = 2580
Left = 2040
TabIndex = 0
Top = 240
Width = 2775
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FF0000&
Caption = "删除用户"
BeginProperty Font
Name = "方正姚体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000E&
Height = 1440
Left = 360
TabIndex = 3
Top = 1080
Width = 375
WordWrap = -1 'True
End
Begin VB.Image Image1
Height = 3255
Left = 240
Picture = "frmDelUser.frx":0000
Stretch = -1 'True
Top = 240
Width = 1575
End
End
Attribute VB_Name = "frmDelUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Del_Click()
If List_user.Text = "" Then
MsgBox "请选择要删除的用户名", , "提示"
Else
MyUser.Delete (List_user.Text)
List_user.Clear
MyUser.Load_Title
Do While t(i) <> ""
List_user.AddItem t(i) '把标题添加到List_User列表框中
i = i + 1
Loop
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
'置中窗体
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
'根据当前地域类型装入数据
Loadtitle
End Sub
Private Sub Loadtitle()
Dim i As Integer
List_user.Clear
MyUser.Load_Title
Do While t(i) <> ""
List_user.AddItem t(i) '把标题添加到List_User列表框中
i = i + 1
Loop
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -