📄 form12.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form12
ClientHeight = 3555
ClientLeft = 5580
ClientTop = 3660
ClientWidth = 5790
LinkTopic = "Form12"
ScaleHeight = 3555
ScaleWidth = 5790
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 4080
Top = 360
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 1085
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=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=学生管理"
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.TextBox Text1
DataField = "帐号"
DataSource = "Adodc1"
Height = 375
Left = 1080
Locked = -1 'True
TabIndex = 5
Top = 360
Width = 2535
End
Begin VB.TextBox Text2
DataField = "密码"
Height = 495
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 4
Top = 960
Width = 2535
End
Begin VB.CommandButton Command1
Caption = "完成"
Height = 615
Left = 1920
TabIndex = 3
Top = 2760
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 615
Left = 4080
TabIndex = 2
Top = 2760
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "刷新"
Height = 495
Left = 4080
TabIndex = 1
Top = 1800
Width = 1215
End
Begin VB.TextBox Text4
DataField = "密码"
DataSource = "Adodc1"
Height = 495
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 0
Top = 1680
Width = 2535
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "帐号"
Height = 180
Left = 360
TabIndex = 9
Top = 480
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "密码1"
Height = 180
Left = 360
TabIndex = 8
Top = 1200
Width = 450
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "密码2"
Height = 180
Left = 360
TabIndex = 7
Top = 1920
Width = 450
End
Begin VB.Label Label5
Caption = "两次密码相同"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 480
Left = 4200
TabIndex = 6
Top = 1200
Width = 720
End
End
Attribute VB_Name = "Form12"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.AddNew
Form12.Text1.Text = Form1.UserName.Text
End Sub
Private Sub Command1_Click()
If Text2.Text = Text4.Text Then
With Adodc1.Recordset
.Fields("密码") = Trim(Text2.Text)
.Fields("帐号") = Trim(Text1.Text)
End With
Adodc1.Recordset.Update
Command1.Enabled = False
Command3.Enabled = True
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -