What comes first - form load or form activate event?

  • Thread starter Thread starter Saul
  • Start date Start date
S

Saul

Hi all,

I have been debugging my app and have found something that I did not expect.
It's to do with the order that form events are fired. I expected the form to
be loaded first (and once only), then activated (whenever shown). However,
my testing indicates that in fact it's the other way around, it activates
first and then runs the load event. Is this a bug or...not? I mean, the
whole point of the load event is to run stuff the first time it's opened
isn't it, before anything else? How can you activate a form that isn't
loaded yet? Or am I missing the whole point again ;-) ?!

I can work around this, I just am wondering out load a bit here....

Regards,
Saul
 
All,

Just to clarify - I am opening a form once, and then using the show/hide to
make it visible. My concern is exactly the order of events when the form is
first opened. I thought it would be

(show)
open
activate
(hide then show)
activate
etc.

But it's --

(show)
activate
open
(hide then show)
activate
etc.

I hope this makes my comment below a bit clearer!

Regards,
Saul
 
Back
Top