Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string      newValue  = textBox1.Text;
            ValueUpdate valueArgs = new ValueUpdate(newValue);

            ValueUpdate(this, valueArgs);
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string      newValue  = label1.Text;
            Form1       pp        = new Form1();
            ValueUpdate valueArgs = new ValueUpdate(newValue);

            ValueUpdate(this, valueArgs);
        }
Example #3
0
 public void form2_ValueUpdate(object sender, ValueUpdate e)
 {
     label1.Text = e.newValue;
 }