Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Name the property which of menu cannot be set at run time?

1027


What is the difference between the add() and insert() methods of a listbox control?

977


Explain how to split a column header in gridview using c#.net?

960


What are controls in windows forms?

923


What is form application?

912


Name the property which is used to specify the source from where the crystal reports would be accessed.

923


What is a database form?

848


Explain how to get records from a database?

1047


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

979


What is the use of runworkasync() methods?

977


Explain how save rerecord in the database?

929


What are window based applications?

906


Explain the new events in textbox that has been included in vb?

913


Explain how to add resources during runtime?

966


How is anchoring different from docking?

1074