Thanks. Paco's solution to me seems the simplest, though:
Screen.Activeform.CleanupFlock()
Thanks for your help,
Yossi
>well, I think there are several options to do this
>
>1. Since you are not allowed to use thisform within the menu try to send the form object as a parameter to the shorcut menu something like this:
>
>
>*:RightClick event of the Grid
>
>do yourShorcutmenu with Thisform
>
>*:in MyShorcutMenu.mpr
>lparameter oCallingForm
>
>define
>
>on selection bar 1 of MySorcutPopupMenu oCallingForm.MyFormMethod()
>
>
>
>2.Give a name to the form when running, somthing like this
>
>
>do yourForm NAME oActiveForm
>
>*:in MyShorcutMenu.mpr
>
>define
>on selection bar 1 of MySorcutPopupMenu oActiveForm.MyFormMethod()
>
>
>hope this makes sense for u
>
>regards