Sunday, June 13, 2010

Delphi: Create a Form That Can Not Close


To create a form that can not be in close-in Delphi is very easy. following steps:
1. Open up your Delphi application then create a menu by clicking File> New> Application. (Here I use Delphi 7).




2. Then select the object form. In the object inspector select events and then double-click OnClose.



 
3. Then write the following code
     Action := caNone;
  4. Then, at compile by pressing Ctrl + F9
  5. Later in the run by pressing F9. Behold, the form can not be in close because of the close of the application functionality is not enabled. :-D
 Hopefully can be an asset .. ^ _ ^

No comments:

Post a Comment