Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 31st, 2004, 05:56 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default A better way of exiting

What is the best way of exiting from an application? In vb6 I always used 'unload me', or unloaded forms one at a time in the case of multi-form applications. There doesn't appear to be an unload command anymore, and I've tried Application.Exit but this doesn't shut everything down (when it works, which it doesn't every time!) Therefore I've resorted to issuing an 'End' command - this probably isn't the best way, but it appears to be the only one that really will terminate the application properly.

Thanks

 
Old March 31st, 2004, 07:44 PM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use the Me.Close on the last form & it seems to work.





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access exiting WinMain BrianWren Pro VB 6 11 April 3rd, 2008 02:07 PM
force a valid entry befor exiting Vince_421 Access VBA 7 June 22nd, 2006 09:52 AM
prompt user before exiting sandeep Javascript How-To 1 September 5th, 2005 01:42 PM
exiting MyAccount.aspx robert BOOK: ASP.NET Website Programming Problem-Design-Solution 2 July 17th, 2003 11:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.