急用,c#编程无法实先
System.Windows.Forms.Button”不包含“filename”的定义,并且找不到可接受类型为“System.Windows.Forms.Button”...
System.Windows.Forms.Button”不包含“filename”的定义,并且找不到可接受类型为“System.Windows.Forms.Button”的第一个参数的扩展方法“filename”(是否缺少 using 指令或程序集引用?)
源文件:
//show the open file dialog box.
if (btnSelectPicture.ShowDialog() == DialogResult.OK)
{ //Load the picture into the picture bag.
btnSelectPicture.Image = Image.FromFile(picShow.filename);
//show the name of the file in the form's caption.
this.Text = string.Concat("Picture view(" + btnSelectPicture.filemame+ ")"); 展开
源文件:
//show the open file dialog box.
if (btnSelectPicture.ShowDialog() == DialogResult.OK)
{ //Load the picture into the picture bag.
btnSelectPicture.Image = Image.FromFile(picShow.filename);
//show the name of the file in the form's caption.
this.Text = string.Concat("Picture view(" + btnSelectPicture.filemame+ ")"); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询