c# - MDI form with login form does not return to login after closing MDI -


i have mdi form user can access after login, when user closes session should go login form instead opens login form , closes , mdi form, too.

i calling close() method when user click log off button.

i'm not sure how you're doing use this

//on login form private void login() {    //check if login right    mdiform formname = new mdiform();    this.hide(); // login form not visible    formname.showdialog(); //opens mdi , whatever needs    this.show(); //after mdi closes go here } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -