private void button1_Click(object sender, EventArgs e) { string newValue = textBox1.Text; ValueUpdate valueArgs = new ValueUpdate(newValue); ValueUpdate(this, valueArgs); }
private void button1_Click(object sender, EventArgs e) { string newValue = label1.Text; Form1 pp = new Form1(); ValueUpdate valueArgs = new ValueUpdate(newValue); ValueUpdate(this, valueArgs); }
public void form2_ValueUpdate(object sender, ValueUpdate e) { label1.Text = e.newValue; }