I want to delete 3 words called "apple"
from a string of textbox.
Textbox contain more than 3 apple words. I need to select only 3 to delete.
I used this code but it delete all apple words from the string.
private void button4_Click(object sender, EventArgs e)
{
textBox3.Text = textBox3.Text.Replace("apple","");
}
I want to delete 3 words only. Do you have any idea how to achieve this?