public void Foo()
    {
        ChildForm2 child = new ChildForm2();

        child.TextboxEdited += PropertyEditValue;
        child.Show();
    }
Exemple #2
0
    // Simulated - Event method called when button is clicked for child form 2
    public void CallChildForm2()
    {
        ValuesContainer values = new ValuesContainer();

        // Set the value from the main form
        values.Value3 = true;

        // Call the child form while passing in the container of values that we just populated.
        ChildForm2 childForm = new ChildForm2(values);

        childForm2.Show();
    }