
If TextBox1.Tex*****ntains(UCase(txtSearch.Text)) Then
TextBox1.SelectionStart = TextBox1.Text.IndexOf(UCase(txtSearch.Text))
TextBox1.SelectionLength = txtSearch.Text.Length
TextBox1.Select()
Else
Try
TextBox1.SelectionStart = TextBox1.Text.IndexOf(LCase(txtSearch.Text))
TextBox1.SelectionLength = txtSearch.Text.Length
TextBox1.Select()
Catch ex As Exception
MsgBox("Not FOUND")
End Try
End If
.