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
Explain the need of z-order method?
Name the two main categories of .net components.
What are windows applications?
What is window form application?
What are window based applications?
Which method grants a lock on a resource?
What is the full form of gac?
Which of the following position is the default docking position of the statusstrip control on the form?
Which property of the errorprovider control automatically sets to the form to which?
What is the difference between the add() and insert() methods of a listbox control?
What is a windows forms application?
What are the different cloud platforms?
How to get records from a database?
How is anchoring different from docking?
How to split a column header in gridview using c#.net?