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
how barcode print on the win form
Explain how to get records from a database?
What is a windows form application?
Name the property which is used to lock a textbox to enter data?
Name the two main categories of .net components.
Which property of the errorprovider control automatically sets to the form to which?
How to use the FindControl() function to preselect an item in my dropdownlist?
To which namespace does the control class belong?
Which dialog box allows users to switch to another area of the application?
Which event occurs when a user drags an item in a treeview or listview control?
What are controls in windows forms?
What are window based applications?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
Which property value of the helpnavigator property will display the index for a specified topic?
Explain how insert record in the database?