Hello, Have you tried using the
ShowDialog()
method when you are opening the second window from within the form1's code? E.g.:
private void button1\_Clicked(object sender, EventArgs e)
{
Form SecondForm = new SecondForm();
SecondForm.ShowDialog();
}
This will open the second form on-top of the first form, and the main form cannot be accessed until the second form has been disposed. Hope this helps.
j.t.