Option Explicit On 
Option Strict On

Public Class frmDate
  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 dudMonth As System.Windows.Forms.DomainUpDown
  Friend WithEvents nudDay As System.Windows.Forms.NumericUpDown
  Friend WithEvents lblDate As System.Windows.Forms.Label
  
  'Required by the Windows Form Designer
  Private components As System.ComponentModel.Container

  '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.lblDate = New System.Windows.Forms.Label()
    Me.dudMonth = New System.Windows.Forms.DomainUpDown()
    Me.nudDay = New System.Windows.Forms.NumericUpDown()
    CType(Me.nudDay, System.ComponentModel.ISupportInitialize).BeginInit()
    Me.SuspendLayout()
    '
    'lblDate
    '
    Me.lblDate.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.lblDate.Location = New System.Drawing.Point(16, 64)
    Me.lblDate.Name = "lblDate"
    Me.lblDate.Size = New System.Drawing.Size(232, 32)
    Me.lblDate.TabIndex = 2
    Me.lblDate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
    '
    'dudMonth
    '
    Me.dudMonth.BackColor = System.Drawing.Color.White
    Me.dudMonth.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.dudMonth.Location = New System.Drawing.Point(16, 16)
    Me.dudMonth.Name = "dudMonth"
    Me.dudMonth.ReadOnly = True
    Me.dudMonth.Size = New System.Drawing.Size(152, 29)
    Me.dudMonth.TabIndex = 0
    Me.dudMonth.Text = "December"
    Me.dudMonth.Wrap = True
    '
    'nudDay
    '
    Me.nudDay.BackColor = System.Drawing.Color.White
    Me.nudDay.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.nudDay.Location = New System.Drawing.Point(176, 16)
    Me.nudDay.Maximum = New Decimal(New Integer() {31, 0, 0, 0})
    Me.nudDay.Minimum = New Decimal(New Integer() {1, 0, 0, 0})
    Me.nudDay.Name = "nudDay"
    Me.nudDay.ReadOnly = True
    Me.nudDay.Size = New System.Drawing.Size(72, 29)
    Me.nudDay.TabIndex = 1
    Me.nudDay.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
    Me.nudDay.Value = New Decimal(New Integer() {1, 0, 0, 0})
    '
    'frmDate
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(268, 113)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblDate, Me.nudDay, Me.dudMonth})
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
    Me.Name = "frmDate"
    Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
    Me.Text = "Date Input"
    CType(Me.nudDay, System.ComponentModel.ISupportInitialize).EndInit()
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub frmDate_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    dudMonth.Items.Add("January")
    dudMonth.Items.Add("February")
    dudMonth.Items.Add("March")
    dudMonth.Items.Add("April")
    dudMonth.Items.Add("May")
    dudMonth.Items.Add("June")
    dudMonth.Items.Add("July")
    dudMonth.Items.Add("August")
    dudMonth.Items.Add("September")
    dudMonth.Items.Add("October")
    dudMonth.Items.Add("November")
    dudMonth.Items.Add("December")
    dudMonth.SelectedIndex = 0
    lblDate.Text = dudMonth.Text + Str(nudDay.Value)
  End Sub


  Private Sub dudMonth_SelectedItemChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dudMonth.SelectedItemChanged
    lblDate.Text = dudMonth.Text + Str(nudDay.Value)
  End Sub

  Private Sub nudDay_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles nudDay.ValueChanged
    lblDate.Text = dudMonth.Text + Str(nudDay.Value)
  End Sub


End Class
