AdvancedHMI Software

General Category => Support Questions => Topic started by: scott.clark on August 11, 2017, 12:31:19 PM

Title: Close application from other than main form
Post by: scott.clark on August 11, 2017, 12:31:19 PM
using 3.99w

How can I close the application for a form other than MainForm?  I tried using ExitApplication() but get an exception.  I don't want the Exit button on the main screen.

Thanks
Title: Re: Close application from other than main form
Post by: Archie on August 11, 2017, 01:40:49 PM
Try

MainForm.Close

In the secondary form
Title: Re: Close application from other than main form
Post by: scott.clark on August 11, 2017, 05:21:47 PM
Very nice,  Thank you.