I’m using two forms and I disable the first one when the second form shows up. I couldn’t find a way to enable the first form when the second one is closed.
Passing a parameter could be a solution but I bet there is a simpler way.
First I thought of enabling the first form on the destructor of the second but could not do it.
Anyone have any suggestions?
I’m using two forms and I disable the first one when the second form
Share
You can show second form with ShowDialog() – form will be shown as modal, first form will be enabled only when second will be closed.
For future problems you can have a field in second form to have instance of first one, and use that instance, if you need, for example you can use custom constructor: