📄 frm_date.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frm_date
BorderStyle = 0 'None
Caption = "考试日期"
ClientHeight = 2520
ClientLeft = 0
ClientTop = 0
ClientWidth = 4695
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2520
ScaleMode = 0 'User
ScaleWidth = 4695
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MSComCtl2.MonthView MonthView1
Height = 2520
Left = 0
TabIndex = 0
Top = 0
Width = 4695
_ExtentX = 8281
_ExtentY = 4445
_Version = 393216
ForeColor = -2147483630
BackColor = 16777215
Appearance = 1
StartOfWeek = 23789569
TitleBackColor = 16744576
TitleForeColor = -2147483633
TrailingForeColor= 16777215
CurrentDate = 37554
End
End
Attribute VB_Name = "frm_date"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
MonthView1.Value = Date
Move (frm_enterforexam.Left + 1230), (frm_enterforexam.Top + 2290)
End Sub
Private Sub MonthView1_DateDblClick(ByVal DateDblClicked As Date)
Dim i As Integer
If DateDblClicked >= Date Then
frm_enterforexam.Label6.Caption = DateDblClicked
Unload Me
Else
i = MsgBox("考试日期应在当前日期之后!", vbCritical + vbOKCancel + vbApplicationModal, "错误")
If i = vbCancel Then Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -