0
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
try
{
string[] names = new string[2];
string g = names[2];
}
catch(Exception error) {
MessageBox.Show(error);
}
}
}
我不知道最近怎么了,它似乎找不到错误。如果你能帮助我,这会有帮助吗?异常消息不能正常工作
您看到了什么结果? –