Re: Where to call RestoreDesktop?
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 11:12:46 +0100
"Tom de Neef" <tdeneef@xxxxxxxx> wrote in message
news:438c1d24$0$11061$e4fe514c@xxxxxxxxxxxxxxxxx
> 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'.
Loaded is the right place. Overriding a method is just as good as
writing an event handler. Don't forget to call inherited.
Groetjes,
Maarten Wiltink
.
- References:
- Where to call RestoreDesktop?
- From: Tom de Neef
- Where to call RestoreDesktop?
- Prev by Date: Where to call RestoreDesktop?
- Next by Date: Re: Where to call RestoreDesktop?
- Previous by thread: Where to call RestoreDesktop?
- Next by thread: Re: Where to call RestoreDesktop?
- Index(es):
Relevant Pages
|