if (!comboBox1.Items.Contains(comboBox1.SelectedItem ))
{
MessageBox.Show("没有这个客户", "错误", MessageBoxButtons.OK);
return;
}当输入的不存在的时候,会报错:值不能为空。
参数名: value
{
MessageBox.Show("没有这个客户", "错误", MessageBoxButtons.OK);
return;
}当输入的不存在的时候,会报错:值不能为空。
参数名: value
{
MessageBox.Show("没有这个客户", "错误", MessageBoxButtons.OK);
return;
}