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 / atiullah siddique
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are windows based applications?
how see report periviwe
What is the difference between pixels, points, and em’s when fonts are displayed?
Which dialog box allows users to switch to another area of the application?
Are windows forms still used?
Explain how barcode create in the report?
Which method of the messagebox class is used to display a message in the message box?
Explain the difference between listbox and combo box?
What is a database form?
What is difference between winforms and windows forms?
What is window form application?
What is the difference between desktop application and windows application?
how print PGL by XML
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 is the extension of a compiled help project file?