public void FindNext()
{
string text = cboFind.Text;
if (_Last != "" && _Last != text)
{
mOwner.Caret.Position.X = 0;
mOwner.Caret.Position.Y = 0;
mOwner.ScrollIntoView();
}
_Last = text;
if (text == "")
return;
bool found = false;
foreach (string s in cboFind.Items)
{
if (s == text)
{
found = true;
break;
}
}
if (!found)
cboFind.Items.Add(text);
mOwner.SelectNext(cboFind.Text, chkMatchCase.Checked,
chkWholeWord.Checked, chkRegEx.Checked);
}