// 获取图片路径
string binPath = System.Reflection.Assembly.GetExecutingAssembly().Location;
string filepath1 = System.IO.Path.GetDirectoryName(binPath); //当前目录的上一级目录
string filepath2 = filepath1.Substring(0, filepath1.Length - 4);
this.imageCollection1.AddImage(Image.FromFile(@filepath2 + @"\images\theme.png")); //
this.imageCollection1.AddImage(Image.FromFile(@filepath2 + @"\images\config.png"));
this.imageCollection1.AddImage(Image.FromFile(@filepath2 + @"\images\e3d02168.png"));
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交