How do I select/highlight a string in a TextBox control?
I can detect if text is there but I can't select the specified text.
Code:Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click If TextBox1.Text.Contains(TextBox2.Text) Then MsgBox("Found The Text") Else MsgBox("Text Not Found") End If End Sub





Reply With Quote