Dave
11-18-2003, 01:20 PM
What's the cleanest way to shut down an app (from within the app)?
System.Windows.Forms.Application.Exit has no effect at all..
Thanks
System.Windows.Forms.Application.Exit has no effect at all..
Thanks
|
Click to See Complete Forum and Search --> : Shutting down an app Dave 11-18-2003, 01:20 PM What's the cleanest way to shut down an app (from within the app)? System.Windows.Forms.Application.Exit has no effect at all.. Thanks Illyana Rasputin 11-18-2003, 01:20 PM Have you tried this.close(); Best regards, Illyana Rasputin "Dave" <nothing@nothing.com> wrote: > >What's the cleanest way to shut down an app (from within the app)? >System.Windows.Forms.Application.Exit has no effect at all.. > >Thanks > Dave 11-18-2003, 01:20 PM "Illyana Rasputin" <illyana888@hotmail.com> wrote: > >Have you tried > >this.close(); > >Best regards, >Illyana Rasputin > >"Dave" <nothing@nothing.com> wrote: >> >>What's the cleanest way to shut down an app (from within the app)? >>System.Windows.Forms.Application.Exit has no effect at all.. >> >>Thanks >> > Yes, no effect at all. I'm doing this from the form's constructor - is that the problem? Also, is it possible that these commands have no effect when debugging? Illyana Rasputin 11-18-2003, 01:20 PM Hello Dave, have haven't had a problem with this.Close except when I tried using it when a timer finished it's counting. It works in buttons rather effectively. Are you using it in a windows form, a dll or what? I have only used it in Windows forms, so far. I have no idea if it makes any difference. Best regards, Illyana Rasputin "Dave" <none@none.com> wrote: > >"Illyana Rasputin" <illyana888@hotmail.com> wrote: >> >>Have you tried >> >>this.close(); >> >>Best regards, >>Illyana Rasputin >> >>"Dave" <nothing@nothing.com> wrote: >>> >>>What's the cleanest way to shut down an app (from within the app)? >>>System.Windows.Forms.Application.Exit has no effect at all.. >>> >>>Thanks >>> >> >Yes, no effect at all. I'm doing this from the form's constructor - is that >the problem? Also, is it possible that these commands have no effect when >debugging? > Dave 11-18-2003, 01:20 PM "Illyana Rasputin" <Illyana888@hotmail.com> wrote: > >Hello Dave, > >have haven't had a problem with this.Close except when I tried using it when >a timer finished it's counting. > >It works in buttons rather effectively. Are you using it in a windows form, >a dll or what? > >I have only used it in Windows forms, so far. I have no idea if it makes >any difference. > >Best regards, >Illyana Rasputin > I'm using it from the end of a form constructor when I find that the terms and agreement has been rejected. Dave 11-18-2003, 01:20 PM "Dave" <nothing@nothing.com> wrote: > >What's the cleanest way to shut down an app (from within the app)? >System.Windows.Forms.Application.Exit has no effect at all.. > >Thanks > It appears to be that you cannot shut down an app from within the main form's constructor. Oh well.. easy enough to move this code to the 'Main' method. devx.com
Copyright Internet.com Inc. All Rights Reserved |