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

What is the use of form?

529


How is anchoring different from docking?

598


Is typeform free?

516


How save rerecord in the database?

593


Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?

555






How to get records from a database?

591


which property is used to change to some value to access a identity column in datacontrols?

1673


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

1701


Explain something about crystal report in brief?

557


What is the full form of gac?

644


Explain how many number of events does the timer controls?

523


Is form action required?

513


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

525


How many types of dialog boxes windows provides?

587


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?

541