order of events for forms

  • Thread starter Thread starter Rob Hughes
  • Start date Start date
R

Rob Hughes

I sifted through the MSDN docs and searched the groups but I can't
find the order form events fire anywhere. The reason I'm even asking
is it looks like the Activated event fires before the Load event which
seems backwards. I noticed this in debug mode stepping through the
code. Is this correct? If so, why?

Thanks.
 
That's the way it supposed to be. The Activated event is fired upon the
native Form's window being activated. And then it triggers loading all of
the managed code into memory and sequental Form_Load event.
 
Thanks for the reply Alex. I'm new to Pocket PC development and I'm converting an eVB app to .NETCF, so I found that behavior very odd. But that answers why most of the code I've seen has "form_load" type of functionality in the "activate" event. Thanks again!
 
Back
Top