Show second form instead of first form when winforms loaded in C#

I have two windows forms. And I want the second form show when my first form loaded by use Events Load. But the problem is that after the first form loaded then it show both forms without hide my first form. So please check my code below. Thank for any solutions!

 form2 frm2= new form2();
 private void form1_Load(object sender, EventArgs e)
     form1 frm1 = new form1();
     frm1 = this;

Source: forms

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.