private void TSMI_209_Replace_Click(object sender, EventArgs e) { Form ReplaceForm = new Replace(); ReplaceForm.Show(); if (ReplaceForm.DialogResult == System.Windows.Forms.DialogResult.Cancel) { ReplaceForm.Close(); } }
private void replaceToolStripMenuItem_Click(object sender, EventArgs e) { if (Replace.instance == null) { replaceForm = new Replace(); } if (Replace.instance != null) { replaceForm.Show(); } replaceForm.Focus(); }
private void replaceToolStripMenuItem_Click(object sender, EventArgs e) { Replace r = new Replace(); r.ShowDialog(); if (richTextBox1.Find(FindText) == -1) { MessageBox.Show("Cannot find \"" + FindText + "\""); } else { richTextBox1.SelectedText = ReplaceText; } }
private void replaceToolStripMenuItem_Click(object sender, EventArgs e) { Replace replaceForm = new Replace(); replaceForm.ShowDialog(); if (replaceForm.FindNextClicked) { Find findForm = new Find(); Find(Functions.TextToFind, ref findForm); } else if (replaceForm.ReplaceAllClicked) { ReplaceAll(Functions.TextToFind, Functions.ReplacementText); } }
public Replace() { InitializeComponent(); instance = this; }
private void replaceToolStripMenuItem_Click(object sender, EventArgs e) { Replace frm3 = new Replace(this); frm3.ShowDialog(); }