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 is form application?

528


What is the extension of a compiled help project file?

574


What are window applications?

504


To which namespace does the control class belong?

531


Which property of the errorprovider control automatically sets to the form to which?

550






Name the template that is used to create a user-defined component.

515


What is a windows based application?

535


What is form description?

514


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

614


What is a fillable form?

507


How is anchoring different from docking?

598


Explain how many number of events does the timer controls?

523


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

566


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

715


Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?

561