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

how see report periviwe

2529


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

717


How insert record in the database?

811


What is the use of runworkasync() methods?

809


How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed

2016


What is the use of form?

742


What is the difference between a document and a form?

788


Name the property which is used to lock a textbox to enter data?

777


Is windows an application software?

776


What is a windows forms application?

721


What is dynamic linking?

841


What is form and its types?

765


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

1901


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

763


How to create a set up in vb.net for desktop application please say steps with examples?

753