本人初学者,为什么会出现下面的问题?求大神赐教。。
using System;using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication4
{
public partial class ViewerForm1 : Form
{
public ViewerForm1()
{
InitializeComponent();
}
private void btnSelectPicture_Click(object sender, EventArgs e)
{
//show the open file dialog box
if(ofdSelectPicture.ShowDialog()==DialogResult.OK )
{
//load the picture into the picture box.
picShowPicture .Image =Image .FromFile(ofdSelectPicture.FileName);
//show the name of the file in the form's caption.
this .Text=string .Concat("Picture View("+ofdSelectPicture.FileName+")");
}
}
}
private void btnQuit_Click(object sender, EventArgs e)
{
//close the window and the application
this .Close();
}
}
警告 1 文件“D:\新建文件夹 (1)\WindowsFormsApplication3\WindowsFormsApplication3\ViewerForm.cs”不支持代码分析或生成,因为它未包含在支持代码的项目中。 0 0
错误 2 应输入 class、delegate、enum、interface 或 struct D:\新建文件夹 (1)\WindowsFormsApplication4\WindowsFormsApplication4\ViewerForm1.cs 32 17 WindowsFormsApplication4