Advertisement
Guest User

Untitled

a guest
Nov 8th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.71 KB | None | 0 0
  1. Public Class Research
  2.  
  3. Private Sub FindBUT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindBUT.Click
  4.     'Check button text
  5.     If FindBUT.Text = ("Find ""dim""") Then
  6.         'Return all text color to black
  7.         TextBox.ForeColor = Color.Black
  8.         'Find "dim" word
  9.         TextBox.Find("dim")
  10.         TextBox.SelectionColor = Color.Aqua
  11.         'change button text to ("Find all")
  12.         FindBUT.Text = ("Find all")
  13.         'Check button text
  14.     ElseIf FindBUT.Text = ("Find all") Then
  15.         'change all text color to Aqua
  16.         TextBox.ForeColor = Color.Aqua
  17.         'change button text to ("Find ""dim"" ")
  18.         FindBUT.Text = ("Find ""dim""")
  19.     End If
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement