我希望防止连续两次选择同一项,因为索引从未更改,但它仍然运行代码。以下是我所做的: Dim cboComboBox As ComboBox = CType(sender, ComboBoxintComboSelIndex > -1 And intComboSelIndex <> intComboIndex Then intComboIndex = intComboSelIndex
有没有一种更有效
我有一个用户控件,它有一个ComboBox和一个SelectedIndexChanged事件处理程序。在事件处理程序中,我需要能够告诉您之前选择的索引是什么……有谁能给我指个方向吗?private void cboTargetMode_SelectedIndexChanged(object sender, EventArgs e) // need to get the