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 / atiullah siddique
for (int i = 0; i <= comboBox1.Items.Count-1; i++)
{
for (int j = 0; j <= comboBox2.Items.Count-1; j++)
{
if (comboBox1.Items[i].ToString() == comboBox2.Items
[j].ToString())
MessageBox.Show(comboBox1.Items[i].ToString());
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is windows an application software?
What are window applications?
What are the different cloud platforms?
What are windows applications?
How many navigational features are provided by visual studio.net ide?
What is the synonym of form?
What is the use of form?
What is a windows forms application?
Which window allows viewing the resources of the servers, such as services, processes and the event log?
How to use the FindControl() function to preselect an item in my dropdownlist?
What is form record?
How many types of dialog boxes windows provides?
Is typeform free?
Which property of the progressbar control specifies the amount to increment the current value of the control?
Name the method that has to be overridden to change the appearance of the control that is inherited from an existing control.