This is the code in ChildForm1:
ChildForm2.Show();
this.Close(0
At this step, ChildForm2 should show and ChildForm1 should close.
This is the code in ChildForm2_Load:
private void ChildForm2_Load (object sender, EventArgs e)
{
generate combo box dropdown list items;
MessageBox.Show("Hello, world, this is ChildForm2.");
}
The issue is: When I see the messgebox, ChildForm1 still displays in the screen, and no ChildForm2 there. Only after I click Ok on the message box, then message box disappears, ChildForm2 closes, ChildForm2 shows up.