Advertisement
PlajariKode

TetxBox GotFocus

Nov 29th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.32 KB | None | 0 0
  1. Private Sub txtUname_GotFocus(sender As Object, e As EventArgs) Handles txtUname.GotFocus
  2.         If txtUname.Text = "Username" And txtUname.ForeColor = Color.Gray Then
  3.             txtUname.Clear()
  4.             txtUname.ForeColor = Color.Black
  5.         Else
  6.             txtUname.ForeColor = Color.Black
  7.         End If
  8. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement