private void tsbtnReplace_Click(object sender, EventArgs e) { ReplaceForm replaceForm = new ReplaceForm(); replaceForm.RtbInstance = this.rtbDocument; replaceForm.InitialText = this.tstxtSearchText.Text; replaceForm.Show(); }