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

int countFirstBox=comboBox1.Items.Count;
int countSecondBox=comboBox2.Items.Count;
if(countFirstBox==countSecondBox)
{
MessageBox.Show(comboBox1.Items);

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are windows applications?

499


What is the extension of a compiled help project file?

580


What is form description?

519


To which namespace does the control class belong?

534


Explain how save rerecord in the database?

591






What is the full form of gac?

650


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

527


What are the forms of graphics?

519


What is the use of form?

531


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

569


What is the difference between pixels, points, and em’s when fonts are displayed?

563


What is the use of runworkasync() methods?

581


Suppose 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?

587


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

570


Explain how to add resources during runtime?

610