>Hi,
>
>How to click a button lying on a form thru a short cut menu. On doing so, I face an error "THIS can only be used within a method."
>
>The actual command is 'This.parent.cmdSales.Click'
>
>Please suggest .. Saif
In the menu do _screen.activeform.CompleteSale() and in the cmdSales.Click() also call THISFORM.CompleteSale.
http://fox.wikis.com/wc.dll?Wiki~MethodsShouldNeverCallEvents~SoftwareEng