L
Lucas Graf
I feel like a bonehead because this seems so easy.
I have 2 forms in the same namespace, Form1 and Form2.
Form1 is a MDI Container.
Form1 has a status bar : statusbar1
Form1 has a basic menu : File -> Show Dialog
Form2 is a form with a checkbox on it.
Form2 is shown via ...
WindowsApplication1.Form2 dialogForm2 = new Form2();
dialogForm2.ShowDialog();
All i want to do (for this examples sake) is when I click on the checkbox on
Form2 is update the statusbar1.Text on Form1.
This is easy enough when you don't want to show it as a dialog, and you just
set the Parent property of Form2 to Form1, but for whatever reason I can't
figure out how to do it when I want to show it as a dialog.
I have 2 forms in the same namespace, Form1 and Form2.
Form1 is a MDI Container.
Form1 has a status bar : statusbar1
Form1 has a basic menu : File -> Show Dialog
Form2 is a form with a checkbox on it.
Form2 is shown via ...
WindowsApplication1.Form2 dialogForm2 = new Form2();
dialogForm2.ShowDialog();
All i want to do (for this examples sake) is when I click on the checkbox on
Form2 is update the statusbar1.Text on Form1.
This is easy enough when you don't want to show it as a dialog, and you just
set the Parent property of Form2 to Form1, but for whatever reason I can't
figure out how to do it when I want to show it as a dialog.