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
What is difference between winforms and windows forms?
What is window form application?
Explain how to split a column header in gridview using c#.net?
Which of the following position is the default docking position of the statusstrip control on the form?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
How to use the FindControl() function to preselect an item in my dropdownlist?
What are the components of gui for windows?
How to get records from a database?
What is form description?
What is form technology?
Explain something about crystal report in brief?
How save rerecord in the database?
Name the property which is used to specify the source from where the crystal reports would be accessed.
What is form based application?
What is the advantage of a form?