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]. If the user decides he does not want the MessageBox at all and presses the 'X' to close it the message box returns the number of the last button which in the case of a MessageBox with 2 button 'Cancel' & 'Do It' pressing the 'X' will cause the 'Do It' routine to be activated. See example attached. is this correct? MessageBoxTest.tar <http://gambas.8142.n7.nabble.com/file/n56154/MessageBoxTest.tar>
-- View this message in context: http://gambas.8142.n7.nabble.com/MessageBox-problem-tp56154.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