Cracken
Member
Hi
Could someone please advise how to get this to work.
I have a large text box where plain text is pasted into, next to this is a small single line text box where you can enter other text.
On a button click I am looking to remove any text in the large box that is the same as what has been typed in the smaller box.
Here the code I have so far:
Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click
Dim chars As String
chars = txtRemove.Text
If txtText.Text.Contains(chars) Then
txtText.Text.Remove(chars)
End If
End Sub
Thanks in advance.
Mark
Could someone please advise how to get this to work.
I have a large text box where plain text is pasted into, next to this is a small single line text box where you can enter other text.
On a button click I am looking to remove any text in the large box that is the same as what has been typed in the smaller box.
Here the code I have so far:
Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click
Dim chars As String
chars = txtRemove.Text
If txtText.Text.Contains(chars) Then
txtText.Text.Remove(chars)
End If
End Sub
Thanks in advance.
Mark