int textEnd = txtshowfile.TextLength; int index = 1; int prevIndex = Convert.ToInt16(txtshowfile.Tag); int lastIndex = txtshowfile.Text.LastIndexOf(txtsearchgerman.Text); txtshowfile.SelectionBackColor = Color.Red; prevIndex = txtshowfile.Text.IndexOf(txtsearchgerman.Text, prevIndex + 1); txtshowfile.Tag = prevIndex; index = prevIndex; if (prevIndex < 0) { MessageBox.Show("all german words are compare"); } else { txtshowfile.Find(txtsearchgerman.Text, index, textEnd, RichTextBoxFinds.None); txtshowfile.SelectionBackColor = Color.Yellow; index = txtshowfile.Text.IndexOf(txtsearchgerman.Text, index) + 1; flag1++; } >
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)