Hi Ben,
>
>I have placed all code from load.event to init.event
>and you are right it works
>Maybe you can answer than my question
>
>When do we use init and when do we use load.event
The Form's Load event is used to setup the environment prior to the controls being initialized. Generally, to open tables/views/cursors that the controls are bound to.
The Form's Init event is used after all the controls are initialized, to do final 'global' initialization.
Does that make sense?
Bill Armbrecht
VFP MCP