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
Name the property which of menu cannot be set at run time?
What is the difference between the add() and insert() methods of a listbox control?
Explain how to split a column header in gridview using c#.net?
What are controls in windows forms?
What is form application?
Name the property which is used to specify the source from where the crystal reports would be accessed.
What is a database form?
Explain how to get records from a database?
What is the difference between pixels, points, and em’s when fonts are displayed?
What is the use of runworkasync() methods?
Explain how save rerecord in the database?
What are window based applications?
Explain the new events in textbox that has been included in vb?
Explain how to add resources during runtime?
How is anchoring different from docking?