?? 管理人員設定.frm
字號:
VERSION 5.00
Begin VB.Form Form2
Caption = "管理人員設定"
ClientHeight = 1575
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
ScaleHeight = 1575
ScaleWidth = 4680
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3360
TabIndex = 5
Top = 1080
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 375
Left = 240
TabIndex = 4
Top = 1080
Width = 1095
End
Begin VB.TextBox Text2
Height = 270
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 3
Top = 480
Width = 2295
End
Begin VB.TextBox Text1
Height = 270
Left = 1440
TabIndex = 2
Top = 120
Width = 2295
End
Begin VB.Label Label2
Caption = "管理人密碼:"
Height = 255
Left = 240
TabIndex = 1
Top = 480
Width = 1215
End
Begin VB.Label Label1
Caption = "管理人姓名:"
Height = 255
Left = 240
TabIndex = 0
Top = 120
Width = 1215
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Open App.Path() & "\admin.dat" For Output As #15
Print #15, textpass(Text1.Text) & Chr(16) & Chr(17)
Print #15, textpass(Text2.Text) & Chr(16) & Chr(17)
Close #15
Dim i As Integer
i = MsgBox("以成功寫入新的管理人姓名和密碼!請從新登陸!", vbOKOnly)
End
End Sub
Private Sub Command2_Click()
Form1.Visible = True
Form1.SetFocus
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form1.Visible = True
Form1.SetFocus
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -