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 / kirupa
for (int i = 0; i <= comboBox1.Items.Count-1; i++)
{
for (int j = 0; j <= comboBox2.Items.Count-1; j++)
{
if (comboBox1.Items[i].ToString() == comboBox2.Items
[j].ToString())
MessageBox.Show(comboBox1.Items[i].ToString());
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
how barcode print on the win form
Is windows an application software?
Name the property which is used to specify the source from where the crystal reports would be accessed.
Explain something about crystal report in brief?
i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net
Explain how barcode create in the report?
What is form application?
Name the template that is used to create a user-defined component.
Which command prompt utility is used to convert a resource file from the text format into the binary format?
What are controls in windows forms?
What is form and meaning?
How do you apply specific formatting to the data inside the cells?
What is the use of runworkasync() methods?
What is form and its uses?
How many navigational features are provided by visual studio.net ide?