[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Closeing App in Create-Event

Posted on 2000-01-20
4
Medium Priority
?
112 Views
Last Modified: 2010-04-04
How can i close the Application in the Form.Create Event ?
0
Comment
Question by:snoopy_Spy
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 80 total points
ID: 2372050
You can try Application.Terminate (but that won't work until Application.Run has been called), or you can call Halt (termiant with extreme prejudice!).

Cheers,

Raymond.
0
 

Author Comment

by:snoopy_Spy
ID: 2372085
Hi Raymond

Halt works fine, Application.Terminate doesnt' work.
Can i get Problems when i use Halt ?
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 2372126
It depends whats happening at the time. Halt basically stops the program in its tracks so you wont want to use it if you have data that needs saving etc (though finalization blocks are executed after a halt command)

Cheers,

Raymond.
0
 

Author Comment

by:snoopy_Spy
ID: 2372144
Thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question