Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

How to Create Hint, PlaceHolder Text, Watermark In a TextBox vb.net

    Private Sub TextBox1_MouseEnter(Sender As Object, e As EventArgs) Handles TextBox1.MouseEnter
        If TextBox1.Text = "Enter your first name" Then
            TextBox1.Text = ""
            TextBox1.ForeColor = Color.Black
        End If
    End Sub
    Private Sub TextBox1_MouseLeave(sender As Object, e As EventArgs) Handles TextBox1.MouseLeave
        If TextBox1.Text = "" Then
            TextBox1.Text = "Enter your first name"
            TextBox1.ForeColor = Color.Gray
        End If
    End Sub
Comment

PREVIOUS NEXT
Code Example
Csharp :: bower azure repository tag 
Csharp :: audiomixer get float 
Csharp :: turtle graphics face in direction 
Csharp :: index in foreach c# 
Csharp :: validate base64 string c# 
Csharp :: add leading zeroes in c# 
Csharp :: remove backcolor c# 
Csharp :: xamarin timer example 
Csharp :: unity camera follow 
Csharp :: shorthand in c# operator 
Csharp :: string format comma c# 
Csharp :: check if current time is in the morning c# 
Csharp :: no move arrows unity 
Csharp :: object list to csv c# 
Csharp :: c# two different random numbers 
Csharp :: solve fizzbuz c# 
Csharp :: C# check if is first run 
Csharp :: blazor button onclick parameter 
Csharp :: unity get child 
Csharp :: c# implicit operator 
Csharp :: c# throw exception 
Csharp :: linq where list contains another list 
Csharp :: unity making a coroutine wait until another coroutine is done 
Csharp :: unity change tmp text from script 
Csharp :: how to play animation with code in unity 
Csharp :: select a object from list based on a value csharp 
Csharp :: asp.net core identity get user id 
Csharp :: create char array c# 
Csharp :: c# how to get connection string from app config 
Csharp :: c# find duplicates in list of strings 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =