Hi.. Can you give an example to write the code for X button To terminate the program. __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com