一个简单的查询窗口 调试时 点查询时 报错 出现
“未处理的Exception The method or operation is not implemented”指的是下面这段
throw new System.Exception("The method or operation is not implemented."
程序应该没错,是书上的翻版!~~。
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
dataGridView1.ReadOnly=true;
} private void button1_Click(object sender, EventArgs e)
{
this.刀具管理TableAdapter.Fill(
this.刀具基本资料DataSet.刀具管理, textBox1.Text, textBox2.Text);
dataGridView1.DataSource = this.刀具基本资料DataSet.刀具管理; if (dataGridView1.RowCount == 0)
{
MessageBox.Show("无您所要查询的刀具!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
“未处理的Exception The method or operation is not implemented”指的是下面这段
throw new System.Exception("The method or operation is not implemented."
程序应该没错,是书上的翻版!~~。
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
dataGridView1.ReadOnly=true;
} private void button1_Click(object sender, EventArgs e)
{
this.刀具管理TableAdapter.Fill(
this.刀具基本资料DataSet.刀具管理, textBox1.Text, textBox2.Text);
dataGridView1.DataSource = this.刀具基本资料DataSet.刀具管理; if (dataGridView1.RowCount == 0)
{
MessageBox.Show("无您所要查询的刀具!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
private void button1_Click(object sender, EventArgs e)
{
this.刀具管理TableAdapter.Fill(
this.刀具基本资料DataSet.刀具管理, textBox1.Text, textBox2.Text);
dataGridView1.DataSource = this.刀具基本资料DataSet.刀具管理;}没看明白这代什么意思
再附带一个小问题,设置登录密码路径的时候也报错说我的文件夹是可读的 但改不了文件夹属性啊 这咋办啊?
你直接在电脑里改文件的属性.