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
How insert record in the database?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
What is form record?
What is a database form?
What is dynamic linking?
What is a windows forms application?
Is typeform free?
What is the use of play() playlooping() functions?
How do I change the console application in windows?
Which of the following position is the default docking position of the statusstrip control on the form?
What is a fillable form?
Name the class to be inherited for creating a custom control.
How save rerecord in the database?
Explain something about crystal report in brief?
How is anchoring different from docking?