|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Capture Xing out of program and run File/ExitI want when someone clicks the X in the upper right corner of my program
for it to run the sub I've put in for the exit item on the main menu (exitMenuItem_click) "cj" <cj@nospam.nospam> schrieb: Add a handler to the form's 'Closing' or 'FormClosing' (.NET 2.0) event. In >I want when someone clicks the X in the upper right corner of my program >for it to run the sub I've put in for the exit item on the main menu >(exitMenuItem_click) ..NET 2.0 you can determine the reason for closing the form inside the event (check out the handler's 'e' parameter!). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Hi ,
Thanks for Herfried's reply! I just wanted to check how things are going and whether Herfried's suggestion is useful for you. If there is any question, please feel free to join the community and we are here to support you at your convenience. Thanks for your understanding! Best Regards, Terry Fei[MSFT] Microsoft Community Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) -------------------- Show quoteHide quote >Date: Mon, 13 Mar 2006 16:39:09 -0500 >From: cj <cj@nospam.nospam> >User-Agent: Thunderbird 1.5 (Windows/20051201) >MIME-Version: 1.0 >Subject: Capture Xing out of program and run File/Exit >Content-Type: text/plain; charset=ISO-8859-1; format=flowed >Content-Transfer-Encoding: 7bit >Message-ID: <eL14QauRGHA.1***@TK2MSFTNGP09.phx.gbl> >Newsgroups: microsoft.public.dotnet.languages.vb >NNTP-Posting-Host: 208.254.170.98 >Lines: 1 >Path: TK2MSFTNGXA03.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl >Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.dotnet.languages.vb:321615 >X-Tomcat-NG: microsoft.public.dotnet.languages.vb > >I want when someone clicks the X in the upper right corner of my program >for it to run the sub I've put in for the exit item on the main menu >(exitMenuItem_click) >
Converted code
Bug with VS.NET inheriting from a control VB6 to VB.Net - Using X1,X2,Y1,Y2 in .Net Urgent: VB.NET Code to Change Excel Worksheet Header/Footer I'm perplexed with simple ADO.NET - Access DB Access - Please Help Edit and Continue?? VS2005 Export Data to Excel ListView.SelectedItems.Clear if result = system.dbnull how to load a .csv file to a temporary table in sql 2000 |
|||||||||||||||||||||||