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

📄 显示农历.frm

📁 非常不错的一款农历控件,吐血推荐!希望能给各位有所帮助.
💻 FRM
字号:
VERSION 5.00
Object = "{7EEE3DC0-9706-4EDA-9EF5-ECFABCC2053E}#1.0#0"; "CnCalendar.ocx"
Begin VB.Form Form1 
   Caption         =   "显示农历"
   ClientHeight    =   3735
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6375
   Icon            =   "显示农历.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3735
   ScaleWidth      =   6375
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command7 
      Caption         =   "星座"
      Height          =   375
      Left            =   5160
      TabIndex        =   7
      Top             =   3120
      Width           =   1095
   End
   Begin VB.CommandButton Command5 
      Caption         =   "农历日期"
      Height          =   375
      Left            =   5160
      TabIndex        =   6
      Top             =   2640
      Width           =   1095
   End
   Begin VB.CommandButton Command4 
      Caption         =   "农历日"
      Height          =   375
      Left            =   5160
      TabIndex        =   5
      Top             =   2160
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "农历月"
      Height          =   375
      Left            =   5160
      TabIndex        =   4
      Top             =   1680
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "农历年"
      Height          =   375
      Left            =   5160
      TabIndex        =   3
      Top             =   1200
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "属相"
      Height          =   375
      Left            =   5160
      TabIndex        =   2
      Top             =   720
      Width           =   1095
   End
   Begin VB.CommandButton Command6 
      Caption         =   "日期"
      Height          =   375
      Left            =   5160
      TabIndex        =   1
      Top             =   240
      Width           =   1095
   End
   Begin CnCalendar2.CnCalendar CnCalendar1 
      Height          =   3525
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4875
      _ExtentX        =   8599
      _ExtentY        =   6218
      BottomBackColor =   16776960
      DateBackColor   =   8421376
      GridLinesColor  =   4194304
      SelectColor     =   65280
      TitleBackColor  =   16776960
      WeekBackColor   =   33023
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CnCalendar1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbLeftButton Then
         MsgBox "mouseup"
    End If
End Sub

Private Sub Command1_Click()
  MsgBox ("选定日期属相: " + CnCalendar1.GetChineseAnimal(CnCalendar1.Value))
End Sub

Private Sub Command2_Click()
   MsgBox ("选定日期农历年: " + CnCalendar1.GetChineseYear(CnCalendar1.Value))
End Sub

Private Sub Command3_Click()
  MsgBox ("选定日期农历月: " + CnCalendar1.GetChineseMonth(CnCalendar1.Value))
End Sub

Private Sub Command4_Click()
  MsgBox ("选定日期农历日: " + CnCalendar1.GetChineseDay(CnCalendar1.Value))
End Sub

Private Sub Command5_Click()
  MsgBox ("选定日期农历日期: " + CnCalendar1.GetChineseDate(CnCalendar1.Value))
End Sub

Private Sub Command6_Click()
   MsgBox ("选定日期: " + CStr(CnCalendar1.Value))
End Sub


Private Sub Command7_Click()
  MsgBox CnCalendar1.GetConstellation(CnCalendar1.Value)
End Sub


⌨️ 快捷键说明

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