Reusing the save event handler

Peter Osucha <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <007301c78f9e$292035d0$0202a8c0@peterhome>
Hi,

I have a few controls on a form to which I've set the same contextmenustrip.
On the 'Opening()' event for the context menu strip, I have a need to
occasionally hide menu items based on the control for which the
contextmenustrip has been 'opened'.  I looked at the 'sender' argument - it
didn't seem to help much.  HOw can I tell which control caused the
contextmenustrip to open, please?

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.