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
Name the property which is used to specify the source from where the crystal reports would be accessed.
Name the property which of menu cannot be set at run time?
What are the forms of database?
How can you pause a timer control?
What are the properties of datacontrol?
Which event occurs when a user drags an item in a treeview or listview control?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
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?
What is the difference between the add() and insert() methods of a listbox control?
Which dialog box allows users to switch to another area of the application?
What is form and its uses?
What is window form application?
What is difference between winforms and windows forms?
Name the class to be inherited for creating a custom control.
Explain the need of z-order method?