?? frmseldate.frm
字號(hào):
VERSION 5.00
Begin VB.Form frmSelDate
BorderStyle = 1 'Fixed Single
Caption = "日期選擇"
ClientHeight = 4380
ClientLeft = 45
ClientTop = 330
ClientWidth = 5745
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4380
ScaleWidth = 5745
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command3
Caption = "清空"
Height = 495
Left = 1800
TabIndex = 4
Top = 3720
Width = 1095
End
Begin VB.CommandButton Command2
Caption = "確定"
Height = 495
Left = 4320
TabIndex = 3
Top = 3720
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "今天"
Height = 495
Left = 3120
TabIndex = 2
Top = 3720
Width = 1095
End
Begin VB.PictureBox Calendar1
Height = 3495
Left = 0
ScaleHeight = 3435
ScaleWidth = 5595
TabIndex = 0
Top = 0
Width = 5655
End
Begin VB.Label lblSelDate
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "Label1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 495
Left = 120
TabIndex = 1
Top = 3720
Width = 1575
End
End
Attribute VB_Name = "frmSelDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Calendar1_AfterUpdate()
Me.lblSelDate.Caption = Me.Calendar1.value
End Sub
Private Sub Calendar1_Click()
Me.lblSelDate.Caption = Me.Calendar1.value
End Sub
Private Sub Command1_Click()
Call gotoToday
End Sub
Private Sub Command2_Click()
Me.Hide
End Sub
Private Sub Command3_Click()
Call gotoToday
Me.lblSelDate.Caption = ""
End Sub
Private Sub Form_Load()
Call gotoToday
End Sub
Sub gotoToday()
Me.Calendar1.Today
Me.lblSelDate.Caption = Me.Calendar1.value
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -