⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 好用啊
💻 FRM
字号:
VERSION 5.00
Object = "{8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0"; "MSCAL.OCX"
Begin VB.Form Form1 
   Caption         =   "日历控件"
   ClientHeight    =   3945
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4560
   LinkTopic       =   "Form1"
   ScaleHeight     =   3945
   ScaleWidth      =   4560
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox txtDisplay 
      Alignment       =   2  'Center
      Height          =   360
      Left            =   1725
      TabIndex        =   4
      Top             =   3240
      Width           =   2415
   End
   Begin VB.CommandButton cmdNextMonth 
      Caption         =   "下一月>"
      Height          =   315
      Left            =   2400
      TabIndex        =   3
      Top             =   2730
      Width           =   870
   End
   Begin VB.CommandButton cmdNextYear 
      Caption         =   "下一年>>"
      Height          =   315
      Left            =   3510
      TabIndex        =   2
      Top             =   2730
      Width           =   870
   End
   Begin VB.CommandButton cmdPreYear 
      Caption         =   "<<上一年"
      Height          =   315
      Left            =   105
      TabIndex        =   1
      Top             =   2745
      Width           =   870
   End
   Begin VB.CommandButton cmdPreMonth 
      Caption         =   "<上一月"
      Height          =   315
      Left            =   1245
      TabIndex        =   0
      Top             =   2730
      Width           =   870
   End
   Begin MSACAL.Calendar Cal1 
      Height          =   2655
      Left            =   0
      TabIndex        =   5
      Top             =   0
      Width           =   4485
      _Version        =   524288
      _ExtentX        =   7911
      _ExtentY        =   4683
      _StockProps     =   1
      BackColor       =   -2147483626
      Year            =   1999
      Month           =   12
      Day             =   15
      DayLength       =   0
      MonthLength     =   0
      DayFontColor    =   0
      FirstDay        =   2
      GridCellEffect  =   1
      GridFontColor   =   10485760
      GridLinesColor  =   -2147483632
      ShowDateSelectors=   -1  'True
      ShowDays        =   -1  'True
      ShowHorizontalGrid=   -1  'True
      ShowTitle       =   -1  'True
      ShowVerticalGrid=   -1  'True
      TitleFontColor  =   10485760
      ValueIsNull     =   0   'False
      BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "System"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label Label1 
      Caption         =   "您选择的日期是"
      Height          =   255
      Left            =   90
      TabIndex        =   6
      Top             =   3330
      Width           =   1395
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cal1_BeforeUpdate(Cancel As Integer)
    txtDisplay.Text = Cal1.Year & "年" & Cal1.Month & "月" & Cal1.Day & "日"
End Sub
Private Sub Cal1_Click()
    txtDisplay.Text = Cal1.Year & "年" & Cal1.Month & "月" & Cal1.Day & "日"
End Sub
Private Sub cmdNextyear_Click()
        Cal1.NextYear
End Sub
Private Sub cmdPreMonth_Click()
        Cal1.PreviousMonth
End Sub
Private Sub cmdNextMonth_Click()
        Cal1.NextMonth
End Sub
Private Sub cmdPreyear_Click()
        Cal1.PreviousYear
End Sub '

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -