代码如下:
Bitmap myPicLoad = new Bitmap(temp1);//temp1是文件路径(是png格式的)
PictureBox PicLoad = new PictureBox();
PicLoad.Width = 8;
PicLoad.Height = 13;
PicLoad.Location = new Point(25,45);
PicLoad.BackgroundImage = myPicLoad;
PicLoad.Visible = true;
PicLoad.Show();
但是不会显示出来.
请大家给我看看.....
很急....
Bitmap myPicLoad = new Bitmap(temp1);//temp1是文件路径(是png格式的)
PictureBox PicLoad = new PictureBox();
PicLoad.Width = 8;
PicLoad.Height = 13;
PicLoad.Location = new Point(25,45);
PicLoad.BackgroundImage = myPicLoad;
PicLoad.Visible = true;
PicLoad.Show();
但是不会显示出来.
请大家给我看看.....
很急....
解决方案 »
- 关于asp.net中控件 onmouseover事件js 传参
- 访问ODBC数据源的问题
- zedGraph X轴设为时间HH:mm:ss格式
- 我在把数据库里的二进制图片转换成jpg格式时,遇到了System.Drawing.Image image = System.Drawing.Image.FromStream(ms,true);使用了无
- 如何通过广域网控制处于内网中的一台电脑(内网电脑有我的“木马”了)?
- 谁能帮我看一下代码,为什么会出错?
- 用C#开发一个项目时在什么情况下创建Connection比较合理?各位高手请多发言!
- 哪里有C#的视频教学可以下?????????
- 有多少酷哥用c#开发完整的系统了,如OA等?统计。
- 怎样退出循环,通过在循环外部改变循环变量的值,循环时,外部按钮能够响应事件
- 我怎么把另一个程序嵌入到我的程序中???例如qq游戏
- 一个关于用户控件的问题!谢谢各位了
例如:
Bitmap myPicLoad = new Bitmap(temp1);//temp1是文件路径(是png格式的)
PictureBox PicLoad = new PictureBox();
PicLoad.Left = 0;//Set left position
PicLoad.Top =0;//Set top position
PicLoad.Width = 8;
PicLoad.Height = 13;
PicLoad.Location = new Point(25,45);
PicLoad.BackgroundImage = myPicLoad;
PicLoad.Visible = true;
this.Controls.Add( PicLoad );//Add control into form