this.pb_backgroundImage.Image = System.Drawing.Image.FromFile("c:/image.jpg");this.pb_backgroundImage.BackgroundImageLayout = ImageLayout.Stretch; 以上是代碼,圖片能顯示不會拉伸,即代碼無效.在右邊的屬性框里添加項目圖片資源,然后BackgroundImageLayout屬性設置為Stretch,圖片能自動拉伸.
- 2 回答
- 0 關注
- 604 瀏覽
添加回答
舉報
0/150
提交
取消