I have a domainupdown that displays the 12 month of the year and a nud for the days of the month ( 1 to 31)
i use a select case to select the number of days in each month including the leap year.
For the case 0, 2, 4, 6, 7, 9, 11 i would like the domain dudMonth to display only the months with 31 days
Is there a way of doing this???
Select Case dudmonth.SelectedIndex
Case 0, 2, 4, 6, 7, 9, 11 'months with 31 days
nudDay.Maximum = 31
Case 1
If YearOfBirth.IsLeapYear(CShort(myYear)) Then
nudDay.Maximum = 29
Else : nudDay.Maximum = 28
End If
Case 3, 5, 8, 10 'month with 30 days
nudDay.Maximum = 30
End Select
i use a select case to select the number of days in each month including the leap year.
For the case 0, 2, 4, 6, 7, 9, 11 i would like the domain dudMonth to display only the months with 31 days
Is there a way of doing this???
Select Case dudmonth.SelectedIndex
Case 0, 2, 4, 6, 7, 9, 11 'months with 31 days
nudDay.Maximum = 31
Case 1
If YearOfBirth.IsLeapYear(CShort(myYear)) Then
nudDay.Maximum = 29
Else : nudDay.Maximum = 28
End If
Case 3, 5, 8, 10 'month with 30 days
nudDay.Maximum = 30
End Select