Desmond
10-03-2003, 02:26 PM
<HTML> <HEAD> <TITLE>AutoPlay Media Studio 5.0 Knowledge Base</TITLE> </HEAD> <BODY> <h3>Closing Your Application Immediately</h3> <b>Document ID: IR10086</b> <hr> The information in this article applies to: <ul> <li>AutoPlay Media Studio 5.0 Professional Edition</li> </ul> <hr> <h3>SUMMARY</h3> <p>This article describes how to close your application immediately.</p> <h3>DISCUSSION</h3> <p> Normally to close your application, you use the Application.Exit() action. However, if you require your application to terminate immediately, instead of using Application.Exit(), use the following code:<br> <br> Window.Close(Application.GetWndHandle(), CLOSEWND_TERMINATE);</p> <h3>MORE INFORMATION</h3> <p>For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:</p> <ul> <li><b>Program Reference | Actions | Window | Window.Close</b></li> <li><b>Program Reference | Actions | Application | Application.GetWndHandle</b></li> </ul> <p>KEYWORDS: AutoPlay Media Studio 5.0, Window, Application, Close, Exit, Terminate </p> <hr> <FONT SIZE=1> Last reviewed: October 3, 2003<br> Copyright © 2003 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br> </FONT> </BODY> </HTML>