c# - Exit application by clicking button on mainform when already pop up form is running -
form2 user confirmation window,i want close application stop button on mainform,but form2 active , there no dependency between form2 , mainform.how close application ?
you must opening form2 using showdialog() method. instead of use show() method , on mainform button's click event call application.exit() method
Comments
Post a Comment