You may need to add an application.processmessages so windows has time to update the menus available too Kuet-Fung Chong <[EMAIL PROTECTED]> on 17/05/99 02:37:31 pm Please respond to [EMAIL PROTECTED] To: Multiple recipients of list delphi <[EMAIL PROTECTED]> cc: (bcc: Richard R Huegill/NSO/CSDA) Subject: RE: [DUG]: position of applications. >... >My problem is that some times when a module program is launched a user can >click too quickly on the mainmenu again or double click and a second program >is run which should not be able to happen, >... If you don't need the main menu while the modular app is running, you may want to try this: Within the OnClick event handler (assuming that's where you launch the domular app) of the menu: ..... MainMenuForm.Hide ... do whatever you need to run the modular app ... when modular app returns MainMenuForm.Show .... This might prevent the user from clicking on the main menu while the modular app is starting up. Cheers, Kuet-Fung. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz