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 / rejeesh
foreach (string item1 in comboBox1.Items)
{
foreach (string item2 in comboBox2.Items)
if (item1 == item2)
{
MessageBox.Show(item1);
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the components of gui for windows?
How to get records from a database?
Which event occurs when a user drags an item in a treeview or listview control?
Explain how to add resources during runtime?
What is a windows form application?
What is the advantage of a form?
What is form application?
Are windows forms still used?
How do you apply specific formatting to the data inside the cells?
What is an example of form?
Name the event that enables the user to prevent shifting of focus from control until all the validation rules have been met.
What are the properties of datacontrol?
Name the two main categories of .net components.
What is the use of play() playlooping() functions?
What is a fillable form?