📄 users_chag.frm
字号:
VERSION 5.00
Begin VB.Form users_chag
BorderStyle = 1 'Fixed Single
Caption = "用户信息修改"
ClientHeight = 6285
ClientLeft = 360
ClientTop = 2505
ClientWidth = 10500
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "users_chag.frx":0000
ScaleHeight = 889.597
ScaleMode = 0 'User
ScaleWidth = 1977.401
Begin VB.CommandButton Command3
BackColor = &H80000009&
Caption = "取消"
Height = 375
Left = 6120
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 3
Top = 5520
Width = 1095
End
Begin VB.CommandButton Command2
BackColor = &H80000009&
Caption = "信息更新"
Height = 375
Left = 4800
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 2
Top = 5520
Width = 1095
End
Begin VB.CommandButton Command1
BackColor = &H80000009&
Caption = "查找"
Height = 375
Left = 3360
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 1
Top = 5520
Width = 1215
End
Begin VB.TextBox id
BackColor = &H00C0FFFF&
Height = 270
Left = 1080
TabIndex = 0
Top = 5640
Width = 2055
End
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "用户信息"
ForeColor = &H80000008&
Height = 3495
Left = 600
TabIndex = 4
Top = 1800
Width = 6615
Begin VB.ListBox List1
Height = 420
ItemData = "users_chag.frx":4793
Left = 1080
List = "users_chag.frx":479D
TabIndex = 5
Top = 1200
Visible = 0 'False
Width = 735
End
Begin VB.TextBox u_name
ForeColor = &H8000000D&
Height = 270
Left = 1080
TabIndex = 12
Top = 480
Width = 2175
End
Begin VB.TextBox dep
ForeColor = &H8000000D&
Height = 270
Left = 1080
TabIndex = 11
Top = 1200
Width = 2175
End
Begin VB.TextBox tex
ForeColor = &H8000000D&
Height = 1455
Left = 1080
TabIndex = 10
Top = 1800
Width = 5175
End
Begin VB.TextBox day
ForeColor = &H8000000D&
Height = 270
Left = 4440
TabIndex = 9
Top = 1200
Width = 1815
End
Begin VB.TextBox address
ForeColor = &H8000000D&
Height = 270
Left = 4440
TabIndex = 8
Top = 840
Width = 1815
End
Begin VB.TextBox phone
ForeColor = &H8000000D&
Height = 270
Left = 4440
TabIndex = 7
Top = 480
Width = 1815
End
Begin VB.TextBox sex
ForeColor = &H8000000D&
Height = 270
Left = 1080
TabIndex = 6
Top = 840
Width = 735
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "姓名:"
ForeColor = &H80000008&
Height = 375
Index = 0
Left = 240
TabIndex = 19
Top = 480
Width = 735
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "性别:"
ForeColor = &H80000008&
Height = 375
Left = 240
TabIndex = 18
Top = 840
Width = 855
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "备注:"
ForeColor = &H80000008&
Height = 375
Index = 1
Left = 240
TabIndex = 17
Top = 1800
Width = 735
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "注册日期:"
ForeColor = &H80000008&
Height = 375
Index = 2
Left = 3600
TabIndex = 16
Top = 1200
Width = 855
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "地址:"
ForeColor = &H80000008&
Height = 375
Index = 3
Left = 3960
TabIndex = 15
Top = 840
Width = 735
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "联系电话:"
ForeColor = &H80000008&
Height = 375
Index = 4
Left = 3600
TabIndex = 14
Top = 480
Width = 855
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "部门:"
ForeColor = &H80000008&
Height = 375
Index = 5
Left = 240
TabIndex = 13
Top = 1200
Width = 735
End
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "ID"
BeginProperty Font
Name = "Arial"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 600
TabIndex = 20
Top = 5640
Width = 1215
End
End
Attribute VB_Name = "users_chag"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo err1
Call fid_chag(id.Text)
Exit Sub
err1:
MsgBox "请填入id"
End Sub
Private Sub Command2_Click()
Call change
users_chag.u_name.Text = ""
users_chag.sex.Text = ""
users_chag.dep.Text = ""
users_chag.phone.Text = ""
users_chag.address.Text = ""
users_chag.day.Text = ""
users_chag.tex.Text = ""
End Sub
Private Sub Command3_Click()
Me.Hide
End Sub
Private Sub day_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = True
End Sub
Private Sub id_KeyPress(KeyAscii As Integer)
Me.id.BackColor = &H80000005
End Sub
Private Sub List1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
sex.Text = Me.List1.Text
End Sub
Private Sub sex_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = True
End Sub
Private Sub address_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub
Private Sub dep_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub
Private Sub phone_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub
Private Sub tex_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub
Private Sub u_name_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -