A
a
i have 1 form that starts up and stays loaded, while loading and
unloading other forms on top of it:
_first form---------------
public static Form fromForm;
public static void appNav(Form toClose, Form toOpen)
{
toOpen.Show();
toClose.Dispose();
}
so i can load, close forms in other forms by calling:
_first.appNav((this, new FormWhatever());
fine.
but if i want a form to go 'back' to a form dynamically i am having
problems.
so when i load a form, I am trying to set the _first.fromForm by:
_first.fromForm = this;
then i try calling the appNav function:
_first.appNav(this, new _first.fromForm());
So i am trying to go back to the form that was previously loaded by
using the static form in _first, which is set when a form loads...
but it doesn't work. Any suggestions?
unloading other forms on top of it:
_first form---------------
public static Form fromForm;
public static void appNav(Form toClose, Form toOpen)
{
toOpen.Show();
toClose.Dispose();
}
so i can load, close forms in other forms by calling:
_first.appNav((this, new FormWhatever());
fine.
but if i want a form to go 'back' to a form dynamically i am having
problems.
so when i load a form, I am trying to set the _first.fromForm by:
_first.fromForm = this;
then i try calling the appNav function:
_first.appNav(this, new _first.fromForm());
So i am trying to go back to the form that was previously loaded by
using the static form in _first, which is set when a form loads...
but it doesn't work. Any suggestions?