参考自:http://www.cnblogs.com/sufei/archive/2012/11/15/2771299.html 第一种,使用Properties.Resources类,这种方法需要你事先将图片添加到项目中来才行 双击Properties --添加资源--图片--png/jpg? 命名
比如 :abc.png
然后在解决方案里面,删掉该图片,把要做背景的图片 拖进来,改成同名 代码 button.BackgroundImage = 命名空间名.Properties.Resources.图片名称; 第二种,直接用项目路径来引用图片(不能继承到 exe文件里)
button.BackgroundImage =Bitmap.FromFile("d:\\123.png");