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

What are the components of gui for windows?

991


How to get records from a database?

1069


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

1021


Explain how to add resources during runtime?

1081


What is a windows form application?

1028


What is the advantage of a form?

1109


What is form application?

1032


Are windows forms still used?

1125


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

2384


What is an example of form?

1059


Name the event that enables the user to prevent shifting of focus from control until all the validation rules have been met.

971


What are the properties of datacontrol?

2561


Name the two main categories of .net components.

1006


What is the use of play() playlooping() functions?

1097


What is a fillable form?

1047