Re: Where to call RestoreDesktop?
- From: erewhon@xxxxxxxxxx (J French)
- Date: Tue, 29 Nov 2005 11:27:18 +0000 (UTC)
On Tue, 29 Nov 2005 10:19:29 +0100, "Tom de Neef" <tdeneef@xxxxxxxx>
wrote:
>I want to save the state of the application's desktop to the registry on
>exit and reload on startup.
>In mainForm.Onclose I cycle through the application's forms and store size,
>location and visibility.
>
>But where should I put the reverse procedure?
>It must be executed at a time when all forms are created, just before they
>are displayed.
>That could be in each form's loaded method, but isn't there an event that
>signals that the application is ready to go 'live'.
Probably not a good idea, but you could look at doing something in the
..DPR just before Application.Run
Personally I think I would use the Loaded method in each Form
.
- Follow-Ups:
- Re: Where to call RestoreDesktop?
- From: Tom de Neef
- Re: Where to call RestoreDesktop?
- From: Maarten Wiltink
- Re: Where to call RestoreDesktop?
- References:
- Where to call RestoreDesktop?
- From: Tom de Neef
- Where to call RestoreDesktop?
- Prev by Date: Re: Where to call RestoreDesktop?
- Next by Date: Software protection against cracks and piracy
- Previous by thread: Re: Where to call RestoreDesktop?
- Next by thread: Re: Where to call RestoreDesktop?
- Index(es):
Relevant Pages
|
|