this.imageList1.Images.SetKeyName 报错
以下设计器代码总是报错,
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "19.ico");
this.imageList1.Images.SetKeyName(1, "page_excel.ico");
this.imageList1.Images.SetKeyName(2, "icon2_071.ico");
this.imageList1.Images.SetKeyName(3, "icon2_038.ico");
this.imageList1.Images.SetKeyName(4, "icon2_023.ico");
this.imageList1.Images.SetKeyName(5, "刷新2.ico");
this.imageList1.Images.SetKeyName(6, "11.ico"); //这一句报错,这个图标是后来新添加的
错误提示数组超出索引,应该是最后图标没有加入进去,但是我在VS IDE中确实已经加入图标,且绑定到按钮
能显示,运行就不行为什么
另外 imageList的图标是存储在什么地方?