Answer the question
In order to leave comments, you need to log in
Why is the main process hanging after closing the main form?
This is how I open a new form on the main form:
private void panel1_Click(object sender, EventArgs e)
{
Employees_Table employees_Table = new Employees_Table();
employees_Table.StartPosition = FormStartPosition.Manual;
employees_Table.Location = Location;
employees_Table.Show();
this.Hide();
}
private void Employees_Table_FormClosed(object sender, FormClosedEventArgs e)
{
Main main = new Main();
main.StartPosition = FormStartPosition.Manual;
main.Location = Location;
main.Show();
}
Answer the question
In order to leave comments, you need to log in
Do you have two main forms MainForm? You don't have to do that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question