?? xtrz.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form xtrz
BorderStyle = 1 'Fixed Single
Caption = "系統(tǒng)使用日志"
ClientHeight = 4980
ClientLeft = 4380
ClientTop = 2925
ClientWidth = 7995
Icon = "xtrz.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4980
ScaleWidth = 7995
Begin VB.Frame Frame1
Height = 4935
Left = 0
TabIndex = 0
Top = 0
Width = 7935
Begin VB.CommandButton Command1
Caption = "清空(&Q)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6600
TabIndex = 3
Top = 3240
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "退出(&E)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6600
TabIndex = 2
Top = 4080
Width = 1215
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游標(biāo)
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 3120
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 1200
Visible = 0 'False
Width = 1935
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "xtrz.frx":0442
Height = 4575
Left = 120
TabIndex = 1
Top = 240
Width = 6375
_ExtentX = 11245
_ExtentY = 8070
_Version = 393216
Rows = 20
Cols = 5
BackColor = -2147483624
ForeColorFixed = 0
BackColorSel = 64
GridColorFixed = 64
FocusRect = 2
GridLines = 3
FormatString = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
End
Attribute VB_Name = "xtrz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Response = MsgBox("確實要清空系統(tǒng)使用日志嗎?", vbYesNo + vbInformation + vbDefaultButton1, "提示")
If Response <> vbYes Then
Exit Sub
End If
Data1.Recordset.MoveLast
incount = Data1.Recordset.RecordCount
Data1.Recordset.MoveFirst
For i = 1 To incount
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Next
Data1.Refresh
Call Form_Activate
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Activate()
MSFlexGrid1.ColWidth(0) = 200
MSFlexGrid1.ColWidth(1) = 1500
MSFlexGrid1.ColWidth(2) = 1500
MSFlexGrid1.ColWidth(3) = 1500
MSFlexGrid1.ColWidth(4) = 1500
MSFlexGrid1.TextMatrix(0, 1) = "登錄人員"
MSFlexGrid1.TextMatrix(0, 2) = " 日期"
MSFlexGrid1.TextMatrix(0, 3) = " 開始時間"
MSFlexGrid1.TextMatrix(0, 4) = " 結(jié)束時間"
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\db1.mdb"
Data1.RecordSource = "select * from xtrz"
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -