StatusStrip和ToolStrip关联控件丢失问题

来源:互联网 发布:多无人机路径规划算法 编辑:程序博客网 时间:2024/05/14 08:32

有时把资源里面的图片给删除,就会报错。导致的结果是.StatusStrip所包含的控件失去关联关系。可能这是VS的一个小小的bug.

可以手动把其给加上。

 

            this.SS_Status.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {            this.TSSL_Time,            this.LL_RobotCount});


 

            this.TS_Control.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {                this.TSB_Setting,this.TSB_Max,this.TSB_MIN, this.TSB_Close});


 

原创粉丝点击