c#怎么用代码给窗口添加背景图片呀, 大家帮帮我 c#怎么用代码给窗口添加背景图片呀, 大家帮帮我 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置窗体的BackgroundImage为一副图片即可。http://blog.csdn.net/suyiming/article/details/4101177string fbImage = Application.StartupPath + @"..\Images\bg1.jpg";if(File.Exists(fbImage)){ Bitmap bm = new Bitmap(fbImage); this.BackgroundImage = bm;} 呃 、、this.BackgroundImage = Image.FormFile("C:\\1.jpg"); string fbImage = Application.StartupPath + @"..\Images\bg1.jpg";if(File.Exists(fbImage)){ Bitmap bm = new Bitmap(fbImage); this.BackgroundImage = bm;} WINFORM,有什么好的Office OCX控件,能查看不能修改WORD,EXCEL 紧急求救!vs2010 c# winform程序中使用了mapobjects,无法注册mo20.ocx 如何让窗体透明但窗体上的控件不透明? 北京招聘DotNet程序员 asp.net 2.0 gridview 里数据如何用水晶报表把他打印出来? 用户自定义列在Datagrid中可以自动添加此列文本模式和编辑模式怎么做? 保存长字符串到oracle的问题 如何让我写的Xml文件第一行 不怎么喜欢编程的人,怎么学好编程 用C#处理html 文件. 怎么获取这个rand_num C# 查询FoxPro数据太慢
http://blog.csdn.net/suyiming/article/details/4101177string fbImage = Application.StartupPath + @"..\Images\bg1.jpg";
if(File.Exists(fbImage))
{
Bitmap bm = new Bitmap(fbImage);
this.BackgroundImage = bm;
}
this.BackgroundImage = Image.FormFile("C:\\1.jpg");
if(File.Exists(fbImage))
{
Bitmap bm = new Bitmap(fbImage);
this.BackgroundImage = bm;
}