var s = sender as ToolStripMenuItem; var m = s.Owner as ContextMenuStrip; m.SourceControl.BackColor = cf.Color;
c# winform 获取ToolStripMenuItem的SourceControl
原文:https://www.cnblogs.com/jephone/p/11992797.html