stefan1919

ListWriting

Sep 30th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  4.         Dim daysInMonth As String
  5.         Select Case lstMonths.Text
  6.             Case "September", "April", "June", "November"
  7.                 daysInMonth = "30"
  8.             Case "February"
  9.                 daysInMonth = "28 or 29"
  10.             Case Else
  11.                 daysInMonth = "31"
  12.         End Select
  13.         txtDays.Text = daysInMonth
  14.  
  15.     End Sub
  16.  
  17. End Class
Advertisement
Add Comment
Please, Sign In to add comment