Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2005

Tip: Looking for answers? Try searching our database.

terminating of program

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wayne - 10 May 2005 04:35 GMT
hi,

may i know how to terminate a program halfway thru the run?

for example i have test A, B and C. the order is random (ie, can be A
C, B or B, A, C etc etc)

if the first test executed encountered an error, the whole program wil
stop (second n third tests will not run at all). the program will onl
continue to run if each test is correctly executed.

is there any such command to terminate a program?

thanks,
wayn


Hans - 10 May 2005 08:18 GMT
Calling Form.Close() for the main window is the preferred way to close an
application,
Application.Exit() works after the Form.Load event of the main form has been
fired (Note that Form.Closeing and Form.Close are not called),
Environment.Exit() works in all cases.

Hans.

> hi,
>
[quoted text clipped - 18 lines]
> ------------------------------------------------------------------------
>  

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.