private void renameSessionToolStripMenuItem_Click(object sender, EventArgs e) { dlgRename form = new dlgRename(m_Session); if (form.ShowDialog() == DialogResult.OK) { this.TabText = form.textBox1.Text; } }