I have a context menu control that is associated to different controls on the same form. However the programmatic actions behind the context menu are not the same for the controls associated to the context menu. My problem is how to detect the associated control from which the context menu is opened and clicked in order to run the appropriate code.
So far I create different instances of the same context menu and associate each instance to a different control. That works well because each instance will call different code.