stefan1919

presidentNameCase

Sep 30th, 2015
157
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 input As String = TextBox1.Text
  5.         Select Case input
  6.             Case "Thomas"
  7.                 TextBox2.Text = "Correct!"
  8.             Case Else
  9.                 TextBox2.Text = "Nice try."
  10.         End Select
  11.     End Sub
  12. End Class
Advertisement
Add Comment
Please, Sign In to add comment