frmCalendar.frm

 VERSION 5.00
Object = "{A6B74F0A-7994-49CC-A077-DC6CDD76259F}#1.0#0"; "WNCalendar.ocx"
Begin VB.Form frmCalendar
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   2430
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   2670
   LinkTopic       =   "Form1"
   ScaleHeight     =   2430
   ScaleWidth      =   2670
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin Calendar_OCX.WNCalendar WNCalendar1
      Height          =   2655
      Left            =   -90
      TabIndex        =   0
      Top             =   -90
      Width           =   2895
      _ExtentX        =   5106
      _ExtentY        =   4683
   End
End
Attribute VB_Name = "frmCalendar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Deactivate()
    Unload Me
End Sub

Private Sub Form_Load()
    Me.Left = (frmMain.Left) - 310
    Me.Top = (frmMain.Top + frmMain.Height) - 350
   
    If Not IsNothing(frmMain.txtDate) Then WNCalendar1.CurrentDate = CDate(frmMain.txtDate)
End Sub

Private Sub WNCalendar1_Click()
    frmMain.txtDate = WNCalendar1.CurrentDate
    Unload Me
End Sub

Project Homepage: