摘要:
//呵呵,这是我看了VS2008窗体设计器生成的代码才发现的...//原来在代码中也可以动态更换背景图片哦!...//starSky为资源图片名称 this.BackgroundImage = global::ScreenProtection.Properties.Resources.starSky;//设置图片在窗体中的布局 this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; 阅读全文