Hi, I'll first tell you what I am trying to do, and then how I am trying to do it. If there is a better way please let me know.
I am working with two forms - lets call them form_main and form_preferences
When the form_preferences form is up, I want form_main to be disabled until a button (save button) on the form_preferences is clicked.
So here is what I am doing: Button is clicked in form_main
form_preferences frm_p = new form_preferences();
frm_p.Visible = true;
this.enabled = false;
//so far so good
When I hit save on form_preferences it calls a public static method in form_main which needs to enable the form again. Unfortunately I cannot do this directly because it is a static method.
I tried creating a new instance of the form, but then I would have to create the new instance and destroy the original one which seems like a big waste and inefficient. Is there a better way to do this?