求助! StatusStrip控件里怎么 移除 掉ToolStripStatusLabel
int a = statusStrip1.Items.Count;会得到0
statusStrip1 是拖放在界面上的.然后动态 的 在statusStrip1 任务栏上加了几个 ToolStripStatusLabel,现在 要根据事件移除掉.?怎么移除?
都获不到ToolStripStatusLabel,
提示错误:无法通过引用转换、装箱转换、取消装箱转换、包装转换或 Null 类型转换将类型“System.Windows.Forms.Control”转换为“System.Windows.Forms.ToolStripStatusLabel” ?
int a = statusStrip1.Items.Count;会得到0
statusStrip1 是拖放在界面上的.然后动态 的 在statusStrip1 任务栏上加了几个 ToolStripStatusLabel,现在 要根据事件移除掉.?怎么移除?
都获不到ToolStripStatusLabel,
提示错误:无法通过引用转换、装箱转换、取消装箱转换、包装转换或 Null 类型转换将类型“System.Windows.Forms.Control”转换为“System.Windows.Forms.ToolStripStatusLabel” ?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货