JED Tried that but the form is not being deactivated it is only moving down in the Z-Order Thanks Neven ----- Original Message ----- From: <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Sent: Friday, 20 October 2000 14:48 Subject: Re: [DUG]: Last Active Control on a form > > TForm.OnDeactivate event. > untested... > > JED > > >>I'm trying to save the last focused control on a form so when I > reactivate > >>it This control has focus > > > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"