Yes I am aware of this but as I said "The MessageBox gives focus to the first button created so it's a good idea to use the first button as 'Cancel' in case a user presses [Enter]." So in your example if you reverse the 'Yes' and 'No' (Cancel) buttons so that if the user presses [Enter] the 'No' button if pressed the window is not closed then the problem reappears if you click on the 'X'.
-- View this message in context: http://gambas.8142.n7.nabble.com/MessageBox-problem-tp56154p56234.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user