It would be better to create a custom TextBox
control,
but here is something quickly hard-coded to give you a idea.
Find what event gives you desired result etc......
For simple example make sure textbox1 tabindex is not 1
but here is something quickly hard-coded to give you a idea.
Find what event gives you desired result etc......
For simple example make sure textbox1 tabindex is not 1
Public Class Form1Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.LoadTextBox1.ForeColor =
Color.LightSlateGrayTextBox1.Text = "Enter Search
Criteria"End SubPrivate Sub TextBox1_Leave(sender As System.Object, e As System.EventArgs) Handles TextBox1.LeaveIf TextBox1.Text = "" Then TextBox1.ForeColor = Color.LightSlateGrayTextBox1.Text = "Enter Search
Criteria"End IfEnd SubPrivate Sub TextBox1_Enter(sender As System.Object, e As System.EventArgs) Handles TextBox1.EnterIf TextBox1.Text = "Enter Search
Criteria" ThenTextBox1.Text = ""TextBox1.ForeColor = Color.BlackEnd IfEnd SubEnd ClassOutput:: 




