Have you tried the sender object passed by the onclick event? Im not sure but it might give you the menu item or the form. Try tform(sender).propertyname and see if that works
J PO Box 627 00502 Karen, Nairobi, Kenya. Mobile: +254 722 996532 Fixed: +254 20 2050859 [EMAIL PROTECTED] _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of edsynergy Sent: 23 January 2008 1:23 p To: [email protected] Subject: [delphi-en] pop up menu operation I have a popup menu that is used by several forms. to keep it simple it is sitting on a datamodule used by all the forms. In the onclick event I need to find out the name of the form in which the actual menu click occured. I have tried various forms Getparentcomponent and the like but making no progress Is it possible to do this ? Best wishes Ed. [Non-text portions of this message have been removed]

