我现在有一个pictureBox,我想从Image(不是ImageLocation)里面设置显示的图片,
现在需要设置一下他的属性,
string temp = "xl.Properties.Resources." + 5;
pictureBox5.Image = (Image)temp;这样无法把string转换为image
请教大家,预见此问题时,应该何如转换啊?我不太想用ImageLocation加载,它的速度略逊;谢谢!
现在需要设置一下他的属性,
string temp = "xl.Properties.Resources." + 5;
pictureBox5.Image = (Image)temp;这样无法把string转换为image
请教大家,预见此问题时,应该何如转换啊?我不太想用ImageLocation加载,它的速度略逊;谢谢!
你好!我测试了一下,还是没法通过编译;lxcnn(过客)
你好!感谢你回复,是的,5是图片名称,但是这个5只是一个比喻,这里可能我要用循环来设置,就是不知道下一步如何了,谢谢!