03-09-16, 01:42 PM
PHP كود :
TextBox1.Text = "delete any word from textbox"
Dim s As String = TextBox1.Text
Dim wordToDelete As String = "any"
wordToDelete += " "
If Not String.IsNullOrEmpty(s) AndAlso s.Contains(wordToDelete) Then
s = s.Replace(wordToDelete, Nothing)
End If
TextBox1.Text = ""
TextBox1.Text = s

