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 / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

Close Process

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tarun Gujral - 02 Aug 2005 15:15 GMT
Hi All
My application has 3 processes. Now if there occurs an exception say 1
divided by 0 which is not handeled at process level and System Dialog
indicating the exception comes up. If user clicks on abort button, how can I
close other two processes ? i.e. how do I capture Abort event ? I tried using
WinProc messages but abort message doesnt come there. The las message that
appeared was left mouse button up (i.e. I believe when Abort button was
Clicked with mouse).

Pls. help. Thanks in advance

Regards
Tarun Gujral
Serg - 03 Aug 2005 21:22 GMT
You could do Application.Exit()
To capture terminating events look at Form's events, there should be some
exposed (such as Close, Closing, etc)

> Hi All
> My application has 3 processes. Now if there occurs an exception say 1
[quoted text clipped - 9 lines]
> Regards
> Tarun Gujral
Tarun Gujral - 04 Aug 2005 05:07 GMT
Yup that can be done but it has to be through other two processes subscribing
to event of application exit on 1st process getting aborted. I want to handle
the clean up from aborted process itself i.e. if my process 1 is getting
aborted , process 1 should be responsible for closing other processes. So how
do i capture event in my running process before it is aborted

Thanks
Tarun Gujral

> You could do Application.Exit()
> To capture terminating events look at Form's events, there should be some
[quoted text clipped - 13 lines]
> > Regards
> > Tarun Gujral

Rate this thread:







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.