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 / rejeesh

foreach (string item1 in comboBox1.Items)
{
foreach (string item2 in comboBox2.Items)
if (item1 == item2)
{
MessageBox.Show(item1);
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you pause a timer control?

647


What is the difference between a document and a form?

553


How many navigational features are provided by visual studio.net ide?

618


What are the forms of database?

533


Is windows an application software?

529






Explain how to add resources during runtime?

613


Which of the following position is the default docking position of the statusstrip control on the form?

588


Explain how save rerecord in the database?

597


What is the difference between pixels, points, and em’s when fonts are displayed?

563


Is form action required?

522


What is the extension of the windows installer file?

585


What is the difference between desktop application and windows application?

499


What is formdata?

578


Where to use new keyword other than create instance?

672


What is the use of form?

537