C#/comboBox选择的时候能正常运行,直接输入的时候就弹出Messagebox.
if(comboBox1.SelectedIndex>comboBox8.SelectedIndex||comboBox2.SelectedIndex>comboBox9...
if (comboBox1.SelectedIndex > comboBox8.SelectedIndex ||
comboBox2.SelectedIndex > comboBox9.SelectedIndex ||
comboBox3.SelectedIndex > comboBox10.SelectedIndex ||
comboBox4.SelectedIndex > comboBox11.SelectedIndex ||
comboBox5.SelectedIndex > comboBox12.SelectedIndex ||
comboBox6.SelectedIndex > comboBox13.SelectedIndex ||
comboBox7.SelectedIndex > comboBox14.SelectedIndex
)
{
MessageBox.Show("I 服 YOU!!");
}
comboBox的内容都是0-80
为什么选择的时候能正常工作,直接输入就出窗口提示 展开
comboBox2.SelectedIndex > comboBox9.SelectedIndex ||
comboBox3.SelectedIndex > comboBox10.SelectedIndex ||
comboBox4.SelectedIndex > comboBox11.SelectedIndex ||
comboBox5.SelectedIndex > comboBox12.SelectedIndex ||
comboBox6.SelectedIndex > comboBox13.SelectedIndex ||
comboBox7.SelectedIndex > comboBox14.SelectedIndex
)
{
MessageBox.Show("I 服 YOU!!");
}
comboBox的内容都是0-80
为什么选择的时候能正常工作,直接输入就出窗口提示 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询