>I just discovered something related if we click too fast on the toolbar before the form finish loading.
>
>My Baseform::Activate(), in some occasions, will activate the enable of some commands on the toolbar. So, when the form starts loading from the Load() event, the commands are .Enabled=.F. on the toolbar. So, if I click on a command on that toolbar while the form has not finish processing the Activate(), I have the situation where the action of that command is executing and my form Activate() is not finish.
>
>So, I tried putting oApp.oToolbar.Enabled=.F. in my form Load() and oApp.oToolbar.Enabled=.T. on my last line of form Activate() but this didn't help. I am still able to make the command action execute before the Activate() finish.
>
>Any comments?
YEah, move the command out of Activate or actually duplicate that command in another method. Activate is one of the last methods to fire. It occurs after the INIT of all objects on the form, after the Form INIT(), after the SHOW(), etc.
HTH,
Tom