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 / atiullah siddique

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 ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is windows an application software?

1005


What are window applications?

899


What are the different cloud platforms?

959


What are windows applications?

905


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

1038


What is the synonym of form?

889


What is the use of form?

921


What is a windows forms application?

984


Which window allows viewing the resources of the servers, such as services, processes and the event log?

987


How to use the FindControl() function to preselect an item in my dropdownlist?

2155


What is form record?

920


How many types of dialog boxes windows provides?

1066


Is typeform free?

929


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

1078


Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.

944