c# winform 获取ToolStripMenuItem的SourceControl

2021-01-26 06:15

阅读:700

标签:winform   one   source   controls   pre   Owner   send   text   orm   

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

 

c# winform 获取ToolStripMenuItem的SourceControl

标签:winform   one   source   controls   pre   Owner   send   text   orm   

原文地址:https://www.cnblogs.com/jephone/p/11992797.html


评论


亲,登录后才可以留言!