How to move from one form to another form in C#
How this code work?
We are at form1
- "this.Close(); " Will close the current form.'this ' Keyword is used for current form
- "form2 object=new form2();" is used to create object of form2
- "object.show();" Now using form2 object 'obj ' we call the Show() function that open the form2.