How to add code to Cross(X) button on a form - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8) +---- Thread: How to add code to Cross(X) button on a form (/showthread.php?tid=499) |
How to add code to Cross(X) button on a form - Himansh - 03-26-2012 Hi everybody I saw brandons tutorial of "How to create a software series" I saw how you created Notepad But when we close the notepad you created in your video it unlike normal notepad don't ask for confirmation if we haven't saved the text . So i wanna ask that "How to add code to cross(X) button on form so that when one clicks on it, it asks for Confirmation Thanks in Advance!!!!!!!!!! Re: How to add code to Cross(X) button on a form - brandonio21 - 03-26-2012 You can use the FormClosing event. Re: How to add code to Cross(X) button on a form - Himansh - 03-27-2012 Thanks I got it!!!!!!!!!!!!!!!!!!!!!!!! <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s --> Re: How to add code to Cross(X) button on a form - brandonio21 - 03-27-2012 Great job! Consider this case... closed. *Sunglasses!* |