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
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
how print barcode
What is a windows form application?
Explain how to add resources during runtime?
How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed
What are the three states set in a checkstate property?
What are controls in windows forms?
Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?
Is typeform free?
What is window form application?
Explain how to get records from a database?
What are windows based applications?
How to create a set up in vb.net for desktop application please say steps with examples?
Explain how many number of events does the timer controls?
Explain about crystal report in brief?