📄 frmmain.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form Frmmain
Caption = "数据库自动备份系统"
ClientHeight = 4125
ClientLeft = 165
ClientTop = 450
ClientWidth = 5310
Icon = "Frmmain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 4125
ScaleWidth = 5310
StartUpPosition = 1 '所有者中心
Begin VB.Timer Timer1
Interval = 1000
Left = 4200
Top = 3120
End
Begin MSComctlLib.ImageList ImageList1
Left = 4680
Top = 2400
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 6
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":0CCA
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":19A4
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":7706
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":83E0
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":90BA
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Frmmain.frx":9994
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.StatusBar StatusBar1
Align = 2 'Align Bottom
Height = 255
Left = 0
TabIndex = 6
Top = 3870
Width = 5310
_ExtentX = 9366
_ExtentY = 450
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3528
MinWidth = 3528
Text = "数据库自动备份系统"
TextSave = "数据库自动备份系统"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 2293
MinWidth = 2293
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3528
MinWidth = 3528
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 7
Top = 0
Width = 5310
_ExtentX = 9366
_ExtentY = 741
ButtonWidth = 609
ButtonHeight = 582
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 5
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "autohide"
Object.ToolTipText = "自动隐藏"
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "shezhi"
Object.ToolTipText = "系统设置"
ImageIndex = 4
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "rizhi"
Object.ToolTipText = "日志浏览"
ImageIndex = 6
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "bangzhu"
Object.ToolTipText = "帮助"
ImageIndex = 3
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "tuichu"
Object.ToolTipText = "关闭系统"
ImageIndex = 2
EndProperty
EndProperty
End
Begin VB.Image Image1
Height = 585
Index = 1
Left = 4200
Picture = "Frmmain.frx":A66E
Stretch = -1 'True
Top = 1560
Visible = 0 'False
Width = 600
End
Begin VB.Label lbl_jilu
AutoSize = -1 'True
Caption = "lbl_jilu"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 13
Top = 3120
Width = 840
End
Begin VB.Label lbl_lujing
AutoSize = -1 'True
Caption = "lbl_lujing"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 12
Top = 2640
Width = 1050
End
Begin VB.Label lbl_diaodu
AutoSize = -1 'True
Caption = "lbl_diaodu"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 11
Top = 2160
Width = 1050
End
Begin VB.Label Lbl_moshi
AutoSize = -1 'True
Caption = "Lbl_moshi"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 10
Top = 1680
Width = 945
End
Begin VB.Label Lbl_fangshi
AutoSize = -1 'True
Caption = "Lbl_fangshi"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 9
Top = 1200
Width = 1155
End
Begin VB.Label Lbl_leixing
AutoSize = -1 'True
Caption = "Lbl_leixing"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 180
Left = 2040
TabIndex = 8
Top = 720
Width = 1155
End
Begin VB.Image Image1
Height = 240
Index = 0
Left = 4200
Picture = "Frmmain.frx":AF38
Top = 840
Visible = 0 'False
Width = 240
End
Begin VB.Label Label6
Caption = "备份保留记录:"
Height = 375
Left = 480
TabIndex = 5
Top = 3120
Width = 1335
End
Begin VB.Label Label5
Caption = "备份路径:"
Height = 375
Left = 480
TabIndex = 4
Top = 2640
Width = 1335
End
Begin VB.Label Label4
Caption = "备份调度:"
Height = 495
Left = 480
TabIndex = 3
Top = 2160
Width = 1335
End
Begin VB.Label Label3
Caption = "备份模式:"
Height = 375
Left = 480
TabIndex = 2
Top = 1680
Width = 1335
End
Begin VB.Label Label2
Caption = "备份方式:"
Height = 375
Left = 480
TabIndex = 1
Top = 1200
Width = 1335
End
Begin VB.Label Label1
Caption = "备份数据库类型:"
Height = 255
Left = 480
TabIndex = 0
Top = 720
Width = 1575
End
Begin VB.Menu mnu_system
Caption = "系统"
Begin VB.Menu mun_hide
Caption = "自动隐藏"
End
Begin VB.Menu mun_exit
Caption = "退出系统"
End
End
Begin VB.Menu mnu_set
Caption = "选项"
Begin VB.Menu mnu_systemset
Caption = "系统设置"
End
Begin VB.Menu mnu_rizhi
Caption = "日志浏览"
End
End
Begin VB.Menu mnu_help
Caption = "帮助"
Begin VB.Menu mnu_about
Caption = "关于"
End
End
Begin VB.Menu mnu_Tray
Caption = "Popup"
Visible = 0 'False
Begin VB.Menu mnu_popup_set
Caption = "设置"
End
Begin VB.Menu mnu_popup_exit
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 diaodutime As Boolean
Dim Time_day As Boolean
Dim Time_month As Boolean
Dim Time_week As Boolean
Dim inco_sin As Integer
Private WithEvents Myfile As FileListBox
Attribute Myfile.VB_VarHelpID = -1
Private Sub Form_Load()
inco_sin = 0
'隐藏窗体
With Me
.Top = -10000
.Left = -10000
.WindowState = vbNormal ' vbMinimized
End With
'设置类型NOTIFYICONDATA所具有的特征
With nidProgramData
nidProgramData.cdSize = Len(nidProgramData)
nidProgramData.hWnd = Me.hWnd
nidProgramData.uId = vbNull
nidProgramData.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
'触发鼠标移动消息
nidProgramData.uCallbackMessage = WM_MOUSEMOVE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -