Option Explicit On 

Public Class frmCalendar
  Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
    Friend WithEvents timDisplay As System.Windows.Forms.Timer
    Friend WithEvents lblDay As System.Windows.Forms.Label
    Friend WithEvents lblTime As System.Windows.Forms.Label
    Friend WithEvents lblMonth As System.Windows.Forms.Label
    Friend WithEvents lblYear As System.Windows.Forms.Label
    Friend WithEvents lblNumber As System.Windows.Forms.Label
    Private components As System.ComponentModel.IContainer

    'Required by the Windows Form Designer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.lblDay = New System.Windows.Forms.Label()
        Me.timDisplay = New System.Windows.Forms.Timer(Me.components)
        Me.lblYear = New System.Windows.Forms.Label()
        Me.lblMonth = New System.Windows.Forms.Label()
        Me.lblTime = New System.Windows.Forms.Label()
        Me.lblNumber = New System.Windows.Forms.Label()
        Me.SuspendLayout()
        '
        'lblDay
        '
        Me.lblDay.Font = New System.Drawing.Font("Times New Roman", 24!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblDay.Location = New System.Drawing.Point(16, 16)
        Me.lblDay.Name = "lblDay"
        Me.lblDay.Size = New System.Drawing.Size(216, 40)
        Me.lblDay.TabIndex = 0
        Me.lblDay.Text = "Wednesday"
        '
        'timDisplay
        '
        Me.timDisplay.Enabled = True
        Me.timDisplay.Interval = 1000
        '
        'lblYear
        '
        Me.lblYear.Font = New System.Drawing.Font("Times New Roman", 24!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblYear.Location = New System.Drawing.Point(248, 168)
        Me.lblYear.Name = "lblYear"
        Me.lblYear.Size = New System.Drawing.Size(176, 40)
        Me.lblYear.TabIndex = 0
        Me.lblYear.Text = "2001"
        Me.lblYear.TextAlign = System.Drawing.ContentAlignment.TopCenter
        '
        'lblMonth
        '
        Me.lblMonth.Font = New System.Drawing.Font("Times New Roman", 24!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblMonth.Location = New System.Drawing.Point(248, 16)
        Me.lblMonth.Name = "lblMonth"
        Me.lblMonth.Size = New System.Drawing.Size(176, 40)
        Me.lblMonth.TabIndex = 0
        Me.lblMonth.Text = "November"
        Me.lblMonth.TextAlign = System.Drawing.ContentAlignment.TopCenter
        '
        'lblTime
        '
        Me.lblTime.Font = New System.Drawing.Font("Times New Roman", 24!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblTime.Location = New System.Drawing.Point(24, 64)
        Me.lblTime.Name = "lblTime"
        Me.lblTime.Size = New System.Drawing.Size(208, 40)
        Me.lblTime.TabIndex = 0
        Me.lblTime.Text = "00:00:00 PM"
        '
        'lblNumber
        '
        Me.lblNumber.Font = New System.Drawing.Font("Arial", 72!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.lblNumber.Location = New System.Drawing.Point(248, 56)
        Me.lblNumber.Name = "lblNumber"
        Me.lblNumber.Size = New System.Drawing.Size(176, 104)
        Me.lblNumber.TabIndex = 0
        Me.lblNumber.Text = "31"
        Me.lblNumber.TextAlign = System.Drawing.ContentAlignment.TopCenter
        '
        'frmCalendar
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(444, 227)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblNumber, Me.lblYear, Me.lblMonth, Me.lblTime, Me.lblDay})
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.Name = "frmCalendar"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "My Calendar"
        Me.ResumeLayout(False)

    End Sub

#End Region

  Private Sub timDisplay_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timDisplay.Tick
    Dim Today As Date
    Today = Now
    lblDay.Text = Format(Today, "dddd")
    lblMonth.Text = Format(Today, "MMMM")
    lblYear.Text = Format(Today, "yyyy")
    lblNumber.Text = Format(Today, "dd")
    lblTime.Text = Format(Today, "h:mm:ss tt")
  End Sub


End Class
