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 / mona
For inti As Integer = 0 To ComboBox1.Items.Count
For intj As Integer = 0 To ComboBox2.Items.Count
If ComboBox1.Items(inti).ToString =
ComboBox2.Items(intj).ToString Then
MessageBox.Show(ComboBox1.Items(inti))
End If
Next
Next
The answer should be modified. The loop should not go upto
the count-1 but should go upto count. Rest all is OK.
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
Which property of the errorprovider control automatically sets to the form to which?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.
how barcode print on the win form
Which window displays messages for the status of various features provided in the visual studio .net ide?
How to use the FindControl() function to preselect an item in my dropdownlist?
What is the full form of gac?
What are windows based applications?
How many types of dialog boxes windows provides?
How is anchoring different from docking?
How can you pause a timer control?
Is form action required?
What are the forms of database?
What is the use of runworkasync() methods?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
What is form technology?