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

Explain the difference between listindex and tab index?

1043


Name the class to be inherited for creating a custom control.

992


Which method grants a lock on a resource?

1026


What is window form application?

943


What is the use of runworkasync() methods?

1046


Which property of the progressbar control specifies the amount to increment the current value of the control?

1084


Which event occurs when a user drags an item in a treeview or listview control?

980


how print barcode

2536


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

1045


How do you apply specific formatting to the data inside the cells?

2332


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

2278


How is anchoring different from docking?

1184


how barcode print on the win form

2409


How save rerecord in the database?

1043


What are window applications?

904