Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Dim daysInMonth As String
- Select Case lstMonths.Text
- Case "September", "April", "June", "November"
- daysInMonth = "30"
- Case "February"
- daysInMonth = "28 or 29"
- Case Else
- daysInMonth = "31"
- End Select
- txtDays.Text = daysInMonth
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment