当窗体加载的时候改变pickBox里面的图片,如何实现?
以下是我的代码实现不了:private void aboutUs_Load(object sender, EventArgs e)
{
BLL.WordHelper wordhelper = new WpAuto.BLL.WordHelper();
string version = wordhelper.readVersion();
if (version == "WpDoc")
{
this.pictureBox1.Image.Save(Application.StartupPath + "\\image\\About_WpDoc.png");
pictureBox1.Image = Image.FromFile(Application.StartupPath + "\\image\\About_WpDoc.png");
}
}
以下是我的代码实现不了:private void aboutUs_Load(object sender, EventArgs e)
{
BLL.WordHelper wordhelper = new WpAuto.BLL.WordHelper();
string version = wordhelper.readVersion();
if (version == "WpDoc")
{
this.pictureBox1.Image.Save(Application.StartupPath + "\\image\\About_WpDoc.png");
pictureBox1.Image = Image.FromFile(Application.StartupPath + "\\image\\About_WpDoc.png");
}
}
解决方案 »
- 初入WinForm、向各位取点经!!来者有分!!!
- 跪求各位大侠帮帮小弟,小弟都要疯了(在线等。。。)
- DataGridView合并行奇怪的问题
- 使用了microsoft agent的程序,在制作安装包的时候
- 怎样把xml存入数据库,请前辈给个例子,小弟先感谢了!
- MenuStrip控件问题 急!
- 点击一个按钮,弹出DateTimePicker,怎么做到呢?
- 组织成都csdn上的朋友聚会!3月15或者16号请参加者报名了!~~~~~~
- 初学者的困惑
- 关于linkLabel控件的使用 在Win2000可以运行,在XP下不可以?(在线等)
- 关于ADO.NET连接池的问题
- 怎样给reportViewer指定源
{}是否存在
F11单步