日期:2014-05-17  浏览次数:21095 次

picturebox控件赋image属性值
现在想给picturebox 控件的图片赋image属性值,图片在资源库里(设为dd.jpg),有一个字符变量ff=dd;
怎么通过ff来设置picturebox的image属性值?
如果可以用文件路径来赋image属性值又是怎么赋值?请知道的兄弟赐教。

------解决方案--------------------
PictureBox.ImageLocation=string.Format("\\Image\\{0}.jpg",ff);