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 block added, indenting reduced