PAMIĘTAJ O PODPIĘCIU EVENTÓW W Form1: public partial class Form1 : Form { private string tekst; public Form1() { InitializeComponent(); } public string Call { get { return tekst; } set { textBox2.Text = value; } } Form2 form2 = null; private void button1_Click(object sender, EventArgs e) { tekst = textBox1.Text; if (form2 == null) form2 = new Form2(this); form2.Show(); form2.wypisz(tekst); } } W Form2: public partial class Form2 : Form { public Form2() { InitializeComponent(); } private Form1 mainForm = null; public Form2(Form callform) { mainForm = callform as Form1; InitializeComponent(); textBox2.Text=this.mainForm.Call; } private void Form2_FormClosing(object sender, FormClosingEventArgs e) { this.Hide(); e.Cancel = true; } public void wypisz(string x) { textBox2.Text = x; } private void button1_Click(object sender, EventArgs e) { this.mainForm.Call = textBox1.Text; } }