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
Explain the difference between listindex and tab index?
Name the class to be inherited for creating a custom control.
Which method grants a lock on a resource?
What is window form application?
What is the use of runworkasync() methods?
Which property of the progressbar control specifies the amount to increment the current value of the control?
Which event occurs when a user drags an item in a treeview or listview control?
how print barcode
What is the difference between pixels, points, and em’s when fonts are displayed?
How do you apply specific formatting to the data inside the cells?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
How is anchoring different from docking?
how barcode print on the win form
How save rerecord in the database?
What are window applications?