关于Windows表单异常处理 [英] regarding windows form exception handling
本文介绍了关于Windows表单异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'schoolDataSet1.Administration' table. You can move, or remove it, as needed.
this.administrationTableAdapter.Fill(this.schoolDataSet1.Administration);
//// TODO: This line of code loads data into the 'schoolDataSet.Administration' table. You can move, or remove it, as needed.
//this.administrationTableAdapter.Fill(this.schoolDataSet.Administration);
}
对于上面的代码,它来了一些异常错误........您能给我这个异常代码吗?
For the above code it is coming some exception error........can u give me exception code for this?
推荐答案
private void Form1_Load(object sender, EventArgs e)
{
try
{
// TODO: This line of code loads data into the 'schoolDataSet1.Administration' table. You can move, or remove it, as needed.
this.administrationTableAdapter.Fill(this.schoolDataSet1.Administration);
//// TODO: This line of code loads data into the 'schoolDataSet.Administration' table. You can move, or remove it, as needed.
//this.administrationTableAdapter.Fill(this.schoolDataSet.Administration);
}
catch(Exception ex)
{
MessageBox.Show(""+ex);
}
}
这篇关于关于Windows表单异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文