Advertisement
TermSpar

TextBox input and output (BenAndChris Tutorial)

Sep 12th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.61 KB | None | 0 0
  1. You need:
  2. -2 TextBoxes
  3. -1 Button
  4. -----------------------------------------------------------------------------------------------------------------------------------
  5.  
  6. Public Class Form1
  7.  
  8.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  9.         Dim userSelection As String
  10.         userSelection = TextBox1.Text
  11.         userSelection.ToLower()
  12.         If userSelection = "This is a test" Then
  13.             TextBox2.Text = "This is an output test"
  14.         Else
  15.             TextBox2.Text = "Did not recognize"
  16.         End If
  17.     End Sub
  18. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement