參考自: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");