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
What are the advantages of form?
What is form application?
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?
Which of the following position is the default docking position of the statusstrip control on the form?
Name the event that enables the user to prevent shifting of focus from control until all the validation rules have been met.
What is the use of runworkasync() methods?
Explain how to split a column header in gridview using c#.net?
What is difference between winforms and windows forms?
Name the template that is used to create a user-defined component.
Which window displays messages for the status of various features provided in the visual studio .net ide?
What is form description?
What is an example of form?
Explain how insert record in the database?
Which method of the messagebox class is used to display a message in the message box?
Name the two main categories of .net components.