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 will calculated the net amount in tax add like total net amount = LT+ST+CESS+amount 2500 = 10%+12.5%+5.15%+amount? kindly please explain what type of formula we apply in software? Tushar
What are window applications?
Which window displays messages for the status of various features provided in the visual studio .net ide?
What is form and meaning?
Explain the difference between listindex and tab index?
Explain how to net forms the windows?
What is form based application?
What are windows applications?
Which method of the messagebox class is used to display a message in the message box?
Is typeform free?
Explain the difference between listbox and combo box?
Is windows an application software?
Explain how to get records from a database?
Explain how save rerecord in the database?
What is a windows form application?