⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 users_save.frm

📁 一个图书馆的VB做的mis系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form users_save 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "添加新用户"
   ClientHeight    =   6300
   ClientLeft      =   360
   ClientTop       =   2505
   ClientWidth     =   10530
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "users_save.frx":0000
   ScaleHeight     =   6300
   ScaleWidth      =   10530
   ShowInTaskbar   =   0   'False
   Visible         =   0   'False
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFFFFF&
      Caption         =   "用户信息"
      Height          =   3615
      Left            =   600
      TabIndex        =   4
      Top             =   1800
      Width           =   6735
      Begin VB.ListBox List1 
         Height          =   420
         ItemData        =   "users_save.frx":44B7
         Left            =   720
         List            =   "users_save.frx":44C1
         TabIndex        =   9
         Top             =   1200
         Visible         =   0   'False
         Width           =   855
      End
      Begin VB.TextBox tex 
         ForeColor       =   &H8000000D&
         Height          =   1695
         Left            =   720
         TabIndex        =   18
         Text            =   "无"
         Top             =   1680
         Width           =   5655
      End
      Begin VB.TextBox day 
         ForeColor       =   &H8000000D&
         Height          =   270
         HideSelection   =   0   'False
         Left            =   4080
         TabIndex        =   16
         Top             =   1320
         Width           =   2295
      End
      Begin VB.TextBox address 
         ForeColor       =   &H8000000D&
         Height          =   270
         Left            =   4080
         TabIndex        =   14
         Top             =   960
         Width           =   2295
      End
      Begin VB.TextBox phone 
         ForeColor       =   &H8000000D&
         Height          =   270
         Left            =   4080
         TabIndex        =   12
         Top             =   600
         Width           =   2295
      End
      Begin VB.TextBox dep 
         ForeColor       =   &H8000000D&
         Height          =   270
         Left            =   720
         TabIndex        =   10
         Top             =   1320
         Width           =   2415
      End
      Begin VB.TextBox sex 
         ForeColor       =   &H8000000D&
         Height          =   270
         Left            =   720
         TabIndex        =   7
         Top             =   960
         Width           =   855
      End
      Begin VB.TextBox u_name 
         ForeColor       =   &H8000000D&
         Height          =   270
         Left            =   720
         TabIndex        =   5
         Top             =   600
         Width           =   2295
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "备注:"
         Height          =   375
         Left            =   240
         TabIndex        =   19
         Top             =   1680
         Width           =   615
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "注册日期:"
         Height          =   255
         Index           =   1
         Left            =   3240
         TabIndex        =   17
         Top             =   1320
         Width           =   1095
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "地址:"
         Height          =   255
         Index           =   2
         Left            =   3600
         TabIndex        =   15
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "联系电话:"
         Height          =   255
         Index           =   3
         Left            =   3240
         TabIndex        =   13
         Top             =   600
         Width           =   975
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "部门:"
         Height          =   255
         Index           =   6
         Left            =   240
         TabIndex        =   11
         Top             =   1320
         Width           =   615
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "性别:"
         Height          =   255
         Index           =   5
         Left            =   240
         TabIndex        =   8
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "姓名:"
         Height          =   255
         Index           =   4
         Left            =   240
         TabIndex        =   6
         Top             =   600
         Width           =   615
      End
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "提示"
      Height          =   1695
      Left            =   7680
      TabIndex        =   2
      Top             =   1800
      Width           =   2535
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Height          =   1335
         Left            =   120
         TabIndex        =   3
         Top             =   240
         Width           =   2295
      End
   End
   Begin VB.CommandButton dele 
      BackColor       =   &H80000009&
      Caption         =   "取消"
      Height          =   375
      Left            =   6120
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   5640
      Width           =   1215
   End
   Begin VB.CommandButton save 
      BackColor       =   &H80000009&
      Caption         =   "注册"
      Height          =   375
      Left            =   4680
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   5640
      Width           =   1215
   End
End
Attribute VB_Name = "users_save"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False









Private Sub address_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.List1.Visible = False
End Sub

Private Sub day_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Caption = "请注意生日填写格式,如:1984-4-3"
Me.List1.Visible = False
End Sub

Private Sub dele_Click()
Me.Hide
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 Form_Load()
users_save.day.Text = Date
End Sub

Private Sub List1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
sex.Text = List1.Text
Me.List1.Visible = False
End Sub

Private Sub phone_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Caption = "请注意用户电话信息以便联系"
Me.List1.Visible = False
End Sub

Private Sub save_Click()
On Error GoTo err1
Call zhu_ce

   Exit Sub
err1:
 MsgBox "请正确填入信息"
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 tex_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Caption = "如有其他信息可以填写在该处"
Me.List1.Visible = False
End Sub

Private Sub u_name_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label3.Caption = "请正确填写用户姓名"
Me.List1.Visible = False
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -