📄 frmdate.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Frmdate
BorderStyle = 1 'Fixed Single
Caption = "日期选择 "
ClientHeight = 1665
ClientLeft = 45
ClientTop = 330
ClientWidth = 4620
Icon = "FrmDate.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1665
ScaleWidth = 4620
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消"
Height = 345
Left = 3060
TabIndex = 5
Top = 840
Width = 1155
End
Begin VB.CommandButton Command1
Caption = "确定"
Default = -1 'True
Height = 345
Left = 3060
TabIndex = 4
Top = 270
Width = 1155
End
Begin MSComCtl2.DTPicker BeginDate
Height = 315
Left = 1050
TabIndex = 1
Top = 270
Width = 1665
_ExtentX = 2937
_ExtentY = 556
_Version = 393216
CalendarBackColor= 16777215
Format = 24510464
CurrentDate = 37155
End
Begin MSComCtl2.DTPicker EndDate
Height = 315
Left = 1050
TabIndex = 3
Top = 870
Width = 1665
_ExtentX = 2937
_ExtentY = 556
_Version = 393216
Format = 24510464
CurrentDate = 37155
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Caption = "到"
Height = 240
Left = 570
TabIndex = 2
Top = 930
Width = 240
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Caption = "从"
Height = 240
Left = 570
TabIndex = 0
Top = 330
Width = 240
End
End
Attribute VB_Name = "Frmdate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
FrmMain.BeginLabel = Format(BeginDate.Value, "yyyy-MM-dd") & " 00:01"
FrmMain.EndLabel = Format(EndDate.Value, "yyyy-MM-dd") & " 23:59"
Me.Hide
End Sub
Private Sub Command2_Click()
Me.Hide
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -