Hi,
I have 2 winforms namely form1 and form2.In form1 I have 2 textboxes and a button which on clicking opens a new form(form2)
under the button_click method of form1 I have written the following code
Form2 f2=new Form2();
f2.Show();
this is working fine.
In form2 I have menu items namely logoff and exit and a button called exit. Now when this form2 is open when I click the minimize button the form1 still appears but I want to hide/close that form1 as soon as the new form(form2)is opened, and also when I click exit button or exit menu item both forms should be closed and when I click lofoff menu item it should bring back the form1. How to achieve this