📄 form2.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form2
BorderStyle = 0 'None
Caption = "Form2"
ClientHeight = 4230
ClientLeft = 0
ClientTop = 0
ClientWidth = 6525
Icon = "Form2.frx":0000
LinkTopic = "Form2"
Picture = "Form2.frx":0442
ScaleHeight = 4230
ScaleWidth = 6525
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 240
Left = 105
TabIndex = 3
Top = 3285
Width = 6285
_ExtentX = 11086
_ExtentY = 423
_Version = 393216
Appearance = 0
Scrolling = 1
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
Enabled = 0 'False
Height = 270
Left = 90
TabIndex = 4
Top = 3270
Width = 6310
End
Begin VB.Timer Timer1
Interval = 1
Left = 960
Top = 2160
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 6360
Top = 3120
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "03-12-28"
DataField = "csdate"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 210
Left = 3720
TabIndex = 2
Top = 110
Width = 960
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "1.021"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404040&
Height = 180
Left = 5880
TabIndex = 1
Top = 270
Width = 525
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "使用者"
DataField = "username"
DataSource = "Adodc1"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 180
Left = 960
TabIndex = 0
Top = 140
Width = 585
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim tim As Integer
Private Sub Form_Load()
ado = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.path + "\database.mdb;Persist Security Info=False;Jet OLEDB:Database Password=http://gogzy.126.com"
Adodc1.ConnectionString = ado
Adodc1.RecordSource = "csh"
Adodc1.Refresh
Label4.Caption = App.Major & "." & App.Minor & "." & App.Revision
'自动备份
bfdb = 0
If Not Adodc1.Recordset.BOF Then
If Day(Date) = Adodc1.Recordset.Fields(10) Or Day(Date) = Adodc1.Recordset.Fields(11) Or Day(Date) = Adodc1.Recordset.Fields(12) Then
bfdb = 1
bfpath = Adodc1.Recordset.Fields(4)
End If
End If
End Sub
Private Sub Timer1_Timer()
tim = tim + 1
ProgressBar1.Value = tim
If tim = 100 Then
Load Form3
Form3.Show
Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -