Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.71 KB | None | 0 0
  1.         OutputRTB.Select(OutputRTB.TextLength, 1)
  2.         OutputRTB.SelectionColor = Color.Green
  3.         OutputRTB.Text += vbNewLine & UsernameWhole & ": " & InputTxtBox.Text & vbNewLine
  4.  
  5.  
  6.         OutputRTB.SelectionColor = Color.Blue
  7.         OutputRTB.Select(OutputRTB.TextLength, 1)
  8.         Dim InputStringDing As String = InputTxtBox.Text.ToLower
  9.         Select Case True
  10.             Case InputStringDing.Contains("hello")
  11.                 OutputRTB.Text += "Bot: " & "Hello there"
  12.             Case InputStringDing.Contains("hi")
  13.                 OutputRTB.Text += "Bot: " & "Hi there"
  14.             Case Else
  15.                 OutputRTB.Text += "No recognizable response. Sending to database."
  16.         End Select
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement