Hi.. How we can write code for X button which is present in right top of the every window which is used to close the window.. next to minimize button. Thanks __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new. http://in.answers.yahoo.com