form1 frm=new form1(); frm.showDialog();
System.Threading.Thread.Sleep(2000); this.Close();
this.parentForm.close(); //here 'this'=your login usercontrol, //'parentForm' is window form inside which you have paste your usercontrol
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)