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 is form application?
What is the extension of a compiled help project file?
What are window applications?
To which namespace does the control class belong?
Which property of the errorprovider control automatically sets to the form to which?
Name the template that is used to create a user-defined component.
What is a windows based application?
What is form description?
How many navigational features are provided by visual studio.net ide?
What is a fillable form?
How is anchoring different from docking?
Explain how many number of events does the timer controls?
Name the class to be inherited for creating a custom control.
How to split a column header in gridview using c#.net?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?