📄 frmdatesel.frm
字号:
VERSION 5.00
Object = "{8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0"; "MSCAL.OCX"
Begin VB.Form DateSel
ClientHeight = 3915
ClientLeft = 60
ClientTop = 60
ClientWidth = 5430
ControlBox = 0 'False
Icon = "FrmDateSel.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3915
ScaleWidth = 5430
StartUpPosition = 3 '窗口缺省
Begin MSACAL.Calendar Calendar1
Height = 3375
Left = 120
TabIndex = 0
Top = 480
Width = 5175
_Version = 524288
_ExtentX = 9128
_ExtentY = 5953
_StockProps = 1
BackColor = -2147483633
Year = 2004
Month = 3
Day = 15
DayLength = 0
MonthLength = 0
DayFontColor = 8388736
FirstDay = 1
GridCellEffect = 1
GridFontColor = 255
GridLinesColor = -2147483624
ShowDateSelectors= -1 'True
ShowDays = -1 'True
ShowHorizontalGrid= -1 'True
ShowTitle = -1 'True
ShowVerticalGrid= -1 'True
TitleFontColor = 128
ValueIsNull = 0 'False
BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 9
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Times New Roman"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Image ImageCancel
Height = 300
Left = 5160
MouseIcon = "FrmDateSel.frx":27A2
Picture = "FrmDateSel.frx":2AAC
Stretch = -1 'True
Top = 0
Width = 300
End
Begin VB.Image ImageOk
Height = 300
Left = 4800
MouseIcon = "FrmDateSel.frx":2E6E
Picture = "FrmDateSel.frx":3178
Stretch = -1 'True
Top = 0
Width = 300
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请选择日期"
Height = 180
Left = 240
TabIndex = 1
Top = 120
Width = 900
End
End
Attribute VB_Name = "DateSel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriDate As String
Private Sub Form_Load()
If IsDate(OriDate) = True Then
Calendar1.Value = OriDate
End If
End Sub
Private Sub ImageCancel_Click()
Unload Me
End Sub
Private Sub ImageOk_Click()
If Calendar1.Day = 0 Then
MsgBox "请选择日期", 48, "警告"
Exit Sub
End If
OriDate = Format(Calendar1.Value, "yyyy-mm-dd")
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -