I want it when Form1 is opened, the whole program stops, and only comes back when it is closed. How can I do this?
Code that opens Form1:
if (x == DialogResult.Yes)
{
Form1 f1 = new Form1();
f1.Show();
}
As it's called:
public static bool testprocess()
{
Config.Txtconfig();
return true;
}
If I were able to return the value only when the Config.Txtconfig()
function ended, I think it would solve my problem, but I do not know how to do it either.