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 / cutee

/* C# Version */

for (int i=0; i<= ComboBox1.Items.Count)
{
for(int j=0 ; j<= ComboBox2.Items.count)
{
if (ComboBox1.Items[i].Text == ComboBox2.Items
[j].Text)
MessageBox.Show(Items[i].Text);
}
}

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

557


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

663


What are the forms of database?

533


How can you pause a timer control?

641


What are the properties of datacontrol?

2034






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

565


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

565


Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?

547


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

590


Which dialog box allows users to switch to another area of the application?

572


What is form and its uses?

509


What is window form application?

506


What is difference between winforms and windows forms?

579


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

569


Explain the need of z-order method?

520