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 is formdata?
how print barcode
Which of the following position is the default docking position of the statusstrip control on the form?
What is form and its uses?
What is form and meaning?
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
Suppose 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?
What is the extension of the windows installer file?
What is form technology?
What are windows based applications examples?
Name the event that enables the user to prevent shifting of focus from control until all the validation rules have been met.
What is a windows based application?
How to get records from a database?
Explain about crystal report in brief?
Is windows an application software?