Re: Reusing the save event handler
Patrick Steele <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <006e01c78fd4$099818f0$6901a8c0@X60T> |
Look at the SourceControl property. --- Patrick Steele http://weblogs.asp.net/psteele -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Sunday, May 06, 2007 1:20 AM To: [email protected] Subject: [DOTNET-WINFORMS] Reusing the save event handler 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