Suppose you have two forms, the first form1 is the main screen which gives you an option to open another form, when this form is open, the user can not go to the main form until he closes / closes form2 .
How do I do this?
Suppose you have two forms, the first form1 is the main screen which gives you an option to open another form, when this form is open, the user can not go to the main form until he closes / closes form2 .
How do I do this?
You can use .ShowDialog ();
Example:
Form2 form=new Form2();
form.ShowDialog();
As long as you do not close the Form2 screen you will not be able to do anything on the Form1 screen