我有3个组合框并有一些值,但在这里我们不应该选择comboxvalues是相等的 [英] i have 3 comboboxes and having some values, but here we should not select comboxvalues are equal
本文介绍了我有3个组合框并有一些值,但在这里我们不应该选择comboxvalues是相等的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
实际上我有3个组合框,所有组合框都有很多值,但我想要一个小弹出框。并且在组合框中一些值是相等的,所以我们不应该在这三个组合框中选择相同的值,如果在任何两个中选择任何相等的值我想要一个弹出框。
紧急请帮助我任何人请先生,它应该在客户系统中工作
i这样写但不起作用
actually i have 3 combo boxes, all combo boxes having lot of values , but i want small popup box. and in that combo boxes some values are equal, so we should not select same values in those three combo boxes, if select any equal values in any both i want one pop box.
urgent please help me any one please sir, it should work in client system
i write like this but its not working
Private Sub cbAuthoriser1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbAuthoriser1.SelectedIndexChanged
Try
If cbAuthoriser1.SelectedIndex <> -1 Then
If cbAuthoriser1.SelectedItem.Text = cbAuthoriser2.SelectedItem.Text Or cbAuthoriser1.SelectedItem.Text = cbAuthoriser3.SelectedItem.Text Then
radWindowManagerAlert.RadAlert("Already you are selected this authoriser.Please selected another one.", 300, 250, "Purchase Request", Nothing)
cbAuthoriser1.ClearSelection()
End If
End If
Catch ex As Exception
End Try
End Sub
Private Sub cbAuthoriser2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbAuthoriser2.SelectedIndexChanged
Try
If cbAuthoriser2.SelectedIndex <> -1 Then
If cbAuthoriser2.SelectedValue = cbAuthoriser1.SelectedValue Or cbAuthoriser2.SelectedValue = cbAuthoriser3.SelectedValue Then
radWindowManagerAlert.RadAlert("Already you are selected this authoriser..Please selected another one.", 300, 250, "purchase Request", Nothing)
cbAuthoriser2.ClearSelection()
End If
End If
Catch ex As Exception
End Try
End Sub
Private Sub cbAuthoriser3_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cbAuthoriser3.SelectedIndexChanged
Try
If cbAuthoriser3.SelectedIndex <> -1 Then
If cbAuthoriser3.SelectedValue = cbAuthoriser1.SelectedValue Or cbAuthoriser3.SelectedValue = cbAuthoriser2.SelectedValue Then
radWindowManagerAlert.RadAlert("Already you are selected this authoriser...Please selected another one.", 300, 250, "purchase Request", Nothing)
cbAuthoriser3.ClearSelection()
End If
End If
Catch ex As Exception
End Try
End Sub
添加了Cpode块,缩小缩小
Cpode block added, indenting reduced
推荐答案
这篇关于我有3个组合框并有一些值,但在这里我们不应该选择comboxvalues是相等的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文