I have two different grid controls on the same form. They share the same context menu. I am having trouble determining which control is the owner when I select the context menu item.
相关问题
- How to use Control.FromHandle?
- 'System.Threading.ThreadAbortException' in
- how to use special characters like '<'
- Android ContextMenu for View (Not Activity)
- C# to VB - How do I convert this anonymous method
相关文章
- vb.net 关于xps文件操作问题
- Checking for DBNull throws a StrongTypingException
- Using the typical get set properties in C#… with p
- Load a .NET assembly from the application's re
- C# equivalent of VB DLL function declaration (Inte
- Difference between SuspendLayout and BeginUpdate
- What other neat tricks does the SpecialNameAttribu
- Automatically install updates with ClickOnce deplo
The event handler for the MenuItem's Click event will have a Sender parameter. This object should be the control that had the focus when the context menu was displayed.
SourceControl property on the ContextMenuStrip class will show the last control that caused that menu strip to be shown.