public void ReplaceNext(Control ctl, string str, string strReplace, bool matchCase)
{
if (_CurrentTab != DesignTabs.Edit)
return;
if (String.Compare(scintilla1.SelectedText, str, !matchCase) == 0)
{
scintilla1.ReplaceSelection(strReplace);
}
else
{
FindNext(ctl, str, matchCase, false);
if (String.Compare(scintilla1.SelectedText, str, !matchCase) == 0)
scintilla1.ReplaceSelection(strReplace);
}
}