In an application, dialogue box appears asking for some purchase option.. I have lost the key of it. Program runs fine if there was no dialog box but if I close that dialog box, application also get end and exits the whole program, seems as if there is an event on queryunload written inside the executable like that.... I want to close that dialogue box without closing the main form? Any way to solve this?