📄 mdbf.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form mdbf
BackColor = &H00C0C0C0&
BorderStyle = 3 'Fixed Dialog
Caption = "人事档案管理系统-档案查询"
ClientHeight = 6615
ClientLeft = 1425
ClientTop = 1785
ClientWidth = 9330
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "mdbf.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 6615
ScaleWidth = 9330
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 1
Left = 2280
Top = 1560
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 495
Left = 240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 4200
Visible = 0 'False
Width = 3975
End
Begin MSFlexGridLib.MSFlexGrid msf
Bindings = "mdbf.frx":0442
Height = 975
Left = 0
TabIndex = 0
Top = 0
Width = 6615
_ExtentX = 11668
_ExtentY = 1720
_Version = 393216
FixedCols = 0
BackColor = 8421376
ForeColor = 16777215
BackColorFixed = 12632256
ForeColorFixed = 0
ForeColorSel = 16777215
AllowUserResizing= 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Menu msort
Caption = "Sort"
Begin VB.Menu msx
Caption = "升序"
End
Begin VB.Menu mjx
Caption = "降序"
End
End
End
Attribute VB_Name = "mdbf"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Resize()
On Error Resume Next
Me.Left = 0
Me.Top = 0
Me.Width = Screen.Width
Me.Height = Screen.Height
Me.Refresh
Me.BackColor = QBColor(7)
msf.Width = Me.Width - msf.Left * 2 - 60
msf.Height = Me.Height - msf.Top - msf.Left - 360
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
Data1.Database.Close
mdb.Show
End Sub
Private Sub mjx_Click()
GridSort msf, msf.Col, 2
End Sub
Private Sub msf_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 And msf.Rows > 1 Then
msf.Col = msf.MouseCol
PopupMenu msort
End If
End Sub
Private Sub msx_Click()
GridSort msf, msf.Col, 1
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
msort.Visible = False
Me.Caption = "数据查询 ── 数据库:" + dbfn + "[数据表:" + tbfn + "]"
Data1.DatabaseName = dbfn
Data1.RecordSource = tbfn
Data1.Refresh
Unload ms
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -