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 forms of graphics?
Which property of the progressbar control specifies the amount to increment the current value of the control?
Suppose 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?
What is the difference between a document and a form?
What are windows based applications?
What is an example of form?
Name the template that is used to create a user-defined component.
What are controls in windows forms?
To which namespace does the control class belong?
Is typeform free?
How to get records from a database?
how print PGL by XML
Which method grants a lock on a resource?
How insert record in the database?
How can you pause a timer control?