I have two combobox .. and i have some items in both combobox
now i need to check the item in both combobox if same item
is Present in both combobox i need to display that item in
message box

Answer Posted / usha

For inti As Integer = 0 To ComboBox1.Items.Count - 1
For intj As Integer = 0 To ComboBox2.Items.Count - 1
If ComboBox1.Items(inti).ToString =
ComboBox2.Items(intj).ToString Then
MessageBox.Show(ComboBox1.Items(inti))
End If
Next
Next

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of play() playlooping() functions?

628


Is form action required?

515


What is the difference between the add() and insert() methods of a listbox control?

590


What is the use of runworkasync() methods?

581


What is form based application?

550






What is the use of form?

531


How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed

1811


Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?

559


Explain about crystal report in brief?

559


How do I change the console application in windows?

503


Which property of the progressbar control specifies the amount to increment the current value of the control?

530


What is window form application?

506


Explain the difference between listindex and tab index?

548


What are the forms of graphics?

519


How can you pause a timer control?

641