Rich,
First thing is that your WAIT WINDOW is agffecting the firing sequence as it takes focus from the form and then focus returns again. If you want to see the real sequence then try using the event tracker in the debugger.
>Form.DE.OpenTables
This event fire only if AutoOpenTables is set to true. It is the event that opens the tables.
>Form.DE.BeforeOpenTables
This event fires when the tables are about to be open and before they are open. It is a result fo the OpenTables event firing.
>Form.Load
Fires as the first Form event after the BeforeOpenTables event and before the tables have been opened by the DE. At this point none of the contained objects exist except for the DE.
>Form.DE.Cursor.Init
Fires for the first cursor in the DE as a result fo the first table being opened
>Form.DE.Init
The Init is the last event for any object during its instantiation sequence.
>Form.Button.Init
The contained objects of the form are created after the form's load evne t has fired
>Form.Init
The last instantiation event for the form.
>Form.Show
Displays the form
>Form.Paint (twice)
OK, maybe this doesn't count, you never put code
thereProbably because of the WAIT WINDOWS takling and returning focus to the form.
>Form.Refresh
Part of the intital showing of the form
>Form.Button.Refresh
Initial form refresh fires the refresh of every control in the form
>Form.Button.When
Button preparing to receive focus
>Form.GotFocus
Form getting focus
>Form.Button.GotFocus
Button getting focus
>Form.Paint
Form being painted
>Form.Button.KeyPress
if I press space instead of mouse-clicking on itYou pressed a key
>Form.Button.Click
The spacebar fires the click of a button
>Form.Release
The click code calls the form's refresh method (this is NOT an event)
>Form.Button.Valid
really surprised me that Button.Valid
fired hereValid fires as button prepares to lose focus
>Form.Button.When
really really surprised me that When
fired here!When fires as button prepares to get focus (since it is the only control and some control must have focus when it loses focus it gets it back again. It may be a side effect of the wait windows.
>Form.Destroy
Fires when the form is being destoryed
>Form.Button.Destroy
The controls destory after the form destroy
>Form.Paint
Form repaints during it destruction
>Form.DE.CloseTables
The DE closes the tables
>Form.DE.AfterCloseTables
After the tables have been closed
>Form.DE.Destroy
The DE destroys
>Form.DE.Cursor.Destroy
The contained objects of teh DE destroy.
One event you missed is the form's Unload.