Sometimes my dialog's "X" button exits the program and sometimes it doesn't. Sometimes it just exits that particular dialog box and opens another randomly. Is there a programmable control for the "X" button? Thanks.