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 / atiullah siddique
for (int i = 0; i <= comboBox1.Items.Count-1; i++)
{
for (int j = 0; j <= comboBox2.Items.Count-1; j++)
{
if (comboBox1.Items[i].ToString() == comboBox2.Items
[j].ToString())
MessageBox.Show(comboBox1.Items[i].ToString());
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many types of dialog boxes windows provides?
What are window based applications?
What is form and meaning?
What is form and its types?
How do you apply specific formatting to the data inside the cells?
What is form technology?
What is the difference between the add() and insert() methods of a listbox control?
What is a windows form application?
Which property value of the helpnavigator property will display the index for a specified topic?
Where is system windows forms dll?
Which event occurs when a user drags an item in a treeview or listview control?
What is the difference between a document and a form?
How will calculated the net amount in tax add like total net amount = LT+ST+CESS+amount 2500 = 10%+12.5%+5.15%+amount? kindly please explain what type of formula we apply in software? Tushar
What are windows applications?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.