📄 frmmain.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.MDIForm FrmMain
BackColor = &H8000000C&
Caption = "员工信息管理系统"
ClientHeight = 8550
ClientLeft = 165
ClientTop = 450
ClientWidth = 10500
LinkTopic = "MDIForm1"
StartUpPosition = 2 '屏幕中心
Begin MSComctlLib.ImageList ImageList
Left = 8880
Top = 5520
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
MaskColor = 12632256
_Version = 393216
End
Begin VB.PictureBox Picdisplay
Align = 1 'Align Top
Height = 15
Left = 0
ScaleHeight = 15
ScaleWidth = 10500
TabIndex = 2
Top = 630
Visible = 0 'False
Width = 10500
Begin MSFlexGridLib.MSFlexGrid MSFlxData
Height = 735
Left = 0
TabIndex = 3
Top = 360
Width = 3555
_ExtentX = 6271
_ExtentY = 1296
_Version = 393216
End
End
Begin MSComDlg.CommonDialog CommonDialog
Left = 8880
Top = 4920
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSComctlLib.Toolbar Toolbar
Align = 1 'Align Top
Height = 630
Left = 0
TabIndex = 1
Top = 0
Width = 10500
_ExtentX = 18521
_ExtentY = 1111
ButtonWidth = 820
ButtonHeight = 953
Appearance = 1
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 17
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "新建"
Key = "新建文件"
Object.ToolTipText = "新建员工信息表"
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打开"
Key = "打开文件"
Object.ToolTipText = "打开文件"
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "保存"
Key = "保存文件"
Object.ToolTipText = "保存文件"
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "另存"
Key = "另存文件"
Object.ToolTipText = "文件另存为"
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
Object.Width = 200
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "添加"
Key = "添加员工"
Object.ToolTipText = "添加员工信息"
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改"
Key = "修改员工"
Object.ToolTipText = "修改员工信息"
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "删除"
Key = "删除员工"
Object.ToolTipText = "删除员工信息"
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "查询"
Key = "查询员工"
Object.ToolTipText = "查询员工信息"
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
Object.Width = 1200
EndProperty
BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "新建"
Key = "新建帐号"
Object.ToolTipText = "添加新帐号"
EndProperty
BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改"
Key = "修改密码"
Object.ToolTipText = "修改帐号密码"
EndProperty
BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
Object.Width = 1200
EndProperty
BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "显示"
Key = "显示窗口"
Object.ToolTipText = "打开查询显示窗口"
EndProperty
BeginProperty Button15 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "关闭"
Key = "关闭窗口"
Object.ToolTipText = "关闭查询窗口"
EndProperty
BeginProperty Button16 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button17 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "退出程序"
Object.ToolTipText = "退出本程序"
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar SbStatusBar
Align = 2 'Align Bottom
Height = 255
Left = 0
TabIndex = 0
Top = 8295
Width = 10500
_ExtentX = 18521
_ExtentY = 450
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 4
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 10319
Text = "就绪..."
TextSave = "就绪..."
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 2
Text = "操作员:"
TextSave = "操作员:"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
Alignment = 1
AutoSize = 2
TextSave = "2005-10-13"
EndProperty
BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
Alignment = 1
AutoSize = 2
TextSave = "15:24"
EndProperty
EndProperty
End
Begin VB.Menu file
Caption = "文件(&F)"
Begin VB.Menu NewFileMenu
Caption = "新建文件"
Shortcut = ^N
End
Begin VB.Menu openfileMunu
Caption = "打开文件"
Shortcut = ^O
End
Begin VB.Menu savefileMenu
Caption = "保存文件"
Shortcut = ^S
End
Begin VB.Menu saveasfileMunu
Caption = "文件另存为"
Shortcut = ^G
End
Begin VB.Menu sep1
Caption = "-"
End
Begin VB.Menu exitMenu
Caption = "退出程序"
Shortcut = ^E
End
End
Begin VB.Menu xitong
Caption = "系统(&O)"
Begin VB.Menu mnuIniDB
Caption = "初始化数据库"
End
Begin VB.Menu sep4
Caption = "-"
End
Begin VB.Menu adduserMenu
Caption = "添加用户"
Shortcut = ^A
End
Begin VB.Menu modifyPWDMenu
Caption = "修改密码"
Shortcut = ^M
End
Begin VB.Menu sep3
Caption = "-"
End
Begin VB.Menu exitloginMenu
Caption = "退出登陆"
Shortcut = ^Q
End
Begin VB.Menu returnloginMenu
Caption = "重新登陆"
Shortcut = ^R
End
End
Begin VB.Menu guanli
Caption = "员工管理(&M)"
Begin VB.Menu addinfoMenu
Caption = "添加员工信息"
Shortcut = ^Z
End
Begin VB.Menu modifyinfoMenu
Caption = "修改员工信息"
Shortcut = ^X
End
Begin VB.Menu deletemeno
Caption = "删除员工信息"
Shortcut = ^D
End
Begin VB.Menu sep2
Caption = "-"
End
Begin VB.Menu findinfoMenu
Caption = "查询员工信息"
Shortcut = ^F
End
End
Begin VB.Menu ArrangeWindowsMenu
Caption = "排列窗口(&W)"
Begin VB.Menu MnuLA
Caption = "水平平铺"
Shortcut = ^L
End
Begin VB.Menu MnuVA
Caption = "垂直平铺"
Shortcut = ^V
End
Begin VB.Menu MnuCA
Caption = "层叠排列"
Shortcut = ^U
End
Begin VB.Menu MnuAI
Caption = "排列图标"
Shortcut = ^I
End
End
Begin VB.Menu help
Caption = "帮助(&H)"
Begin VB.Menu helpinfoMenu
Caption = "帮助信息"
End
Begin VB.Menu aboutmeMemu
Caption = "关于"
End
End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim MSFlxwidth As Double
Dim IntIndex As Integer
Dim mFileName As String
Dim mPDfind As Boolean
'==========================================
'表格初始化过程
'==========================================
Private Sub IniGridStyle()
MSFlxData.Rows = 3
MSFlxData.Cols = 6
MSFlxwidth = (Picdisplay.Width - 900) / 5 - 350
MSFlxData.MergeCells = flexMergeFree
MSFlxData.Width = Picdisplay.Width
MSFlxData.Height = Picdisplay.Height '- 300
MSFlxData.Left = Picdisplay.Left
MSFlxData.Top = 0
MSFlxData.Row = 0
For IntIndex = 1 To MSFlxData.Cols - 1
MSFlxData.Col = IntIndex
MSFlxData.Text = "员工信息表"
MSFlxData.ColWidth(IntIndex) = MSFlxwidth
MSFlxData.CellBackColor = &HC0FFFF
MSFlxData.ColAlignment(IntIndex) = 4
Next
MSFlxData.ColAlignment(0) = 4
MSFlxData.ColWidth(MSFlxData.Cols - 1) = MSFlxwidth + 1900
MSFlxData.MergeRow(0) = True
MSFlxData.Row = 1
MSFlxData.Col = 0
MSFlxData.Text = "序号"
MSFlxData.CellBackColor = RGB(255, 255, 255)
MSFlxData.Col = 1
MSFlxData.Text = "员工编号"
MSFlxData.CellBackColor = RGB(255, 255, 255)
MSFlxData.Col = 2
MSFlxData.Text = "员工姓名"
MSFlxData.CellBackColor = RGB(255, 255, 255)
MSFlxData.Col = 3
MSFlxData.Text = "员工年龄"
MSFlxData.CellBackColor = RGB(255, 255, 255)
MSFlxData.Col = 4
MSFlxData.Text = "加入日期"
MSFlxData.CellBackColor = RGB(255, 255, 255)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -