EDIT: This method actually works great and I asked it then found the solution later. I added the correct call in the overloaded ShowDialog() method (it\'s not exacly an over
Try this, it seems to work for me:
public partial class Form2 : Form { public Form2() { InitializeComponent(); } public DialogResult ShowDialog(string mes) { this.textBox1.Text = mes; return base.ShowDialog(); } private void button1_Click(object sender, EventArgs e) { this.Close(); } }