>Hi,
> Yes, I use this command to verify the _screen.activeform either an object or not. It works fine and not cause VFP Error. However, user will not able to perform task like save, delete and.... from toolbar for the form focused at that moment. User have to terminate the program and run it again. How could I prevent this happen ? I think it is too bad to ask user re-run the application...
>
>Thank you
John,
My form manager knows the currently active form and my toolbars know the form manager. The fomr manager has a property named oForm that is a reference to the currently active form. My toolbars have a property oCreator that refers to the form manager that created them. So thebuttons in the toolbars all say;
This.oCreator.oForm.Whatever
That way the toolbar works for any and every formthat is created.