Hi, I'm sorry this has turned into a rather longer posting than I had intended.
I've been googling returning from a dialog box and I found James' posting: http://www.nntp.perl.org/group/perl.wxperl.users/2008/06/msg5919.html Which gives some hints around cancel. Really what I want to do is when OK is pressed, update the database, close the dialog box and pass the parameter to the calling dialog, which will then close itself and pass the received parameter to MyFrame. So the structure is: MyFrame (press search button) - My Search Dialog(looks for existing clients but doesn't find any) - - Open My Add New Client Dialog - - Enter New Client Details - - Press OK - - Update database and exit My Add Dialog passing New Client ID to Search Dialog - Close My Search too passing New client ID MyFrame receives new client ID just added. If I put in and event filter to update the database, then OK doesn't close the Dialog box. If I don't put in an event then I can't update the DB. Any ideas very welcome. It's now evening here in rainy São Paulo, so have a good morning/ afternoon/evening, whatever time of day it is for you. Regards Steve
<<Blank Bkgrd.gif>>