All this talk of how to find the owning form for an control and no one has mentioned the standard utility functions GetParentForm and ValidParentForm in Forms.pas that will do what you want and are guarenteed to be available and working over any possible future changes to Delphi! Have a look in the help and check the source and you'll see that you don't need to muck about writing this stuff as its already available. Cheers, Max. --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz
- [DUG]: AutoExiting a Control Neven MacEwan
- Re: [DUG]: AutoExiting a Control Aaron Scott-Boddendijk
- Re: [DUG]: AutoExiting a Control Neven MacEwan
- Re: [DUG]: AutoExiting a Control Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a Control Martin Ease
- Re: [DUG]: AutoExiting a Control Neven MacEwan
- RE: [DUG]: AutoExiting a Control Chris Reynolds
- Re: [DUG]: AutoExiting a Control ... Neven MacEwan
- Re: [DUG]: AutoExiting a Con... Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a... Max Nilson
- RE: [DUG]: AutoExiting a... Dennis Chuah
- Re: [DUG]: AutoExiti... Aaron Scott-Boddendijk
- RE: [DUG]: AutoExiting a Con... Chris Reynolds
- RE: [DUG]: AutoExiting a Control Jeff Sinclair