设置应用程序窗体背景图像,C#源代码OpenFileDialog MyDlg = new OpenFileDialog();
设置应用程序窗体背景图像,C#源代码OpenFileDialog MyDlg = new OpenFileDialog(); MyDlg.Filter = "图像文件(JPeg, Gif, Bmp, etc.)|*.jpg;*.jpeg;*.gif;*.bmp;*.tif; *.tiff; *.png| JPeg图像文件(*.jpg;*.jpeg)| *.jpg;*.jpeg |GIF图像文件(*.gif)|*.gif |BMP files (*.bmp)|*.bmp|Tiff图像文件(*.tif;*.tiff)|*.tif;*.tiff|Png图像文件(*.png)| *.png |所有文件(*.*)|*.*"; if (MyDlg.ShowDialog() == DialogResult.OK) { string MyFileName = MyDlg.FileName; this.BackgroundImage = Image.FromFile(MyFileName); this.B ackgroundImageLayout = ImageLayout.Stretch; VisualStudio2008创建
文件列表
SetBackPicture.rar
(预估有个23文件)
SetBackPicture
SetBackPicture.sln
932B
SetBackPicture.suo
13KB
SetBackPicture
Form1.cs
1KB
bin
Debug
SetBackPicture.vshost.exe
14KB
SetBackPicture.pdb
20KB
SetBackPicture.exe
9KB
用户评论