c# winform 获取ToolStripMenuItem的SourceControl

var s = sender as ToolStripMenuItem;
var m = s.Owner as ContextMenuStrip;
m.SourceControl.BackColor = cf.Color;

 

posted on 2019-12-05 23:31  yungs  阅读(1172)  评论(0编辑  收藏  举报