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 / mona
For inti As Integer = 0 To ComboBox1.Items.Count
For intj As Integer = 0 To ComboBox2.Items.Count
If ComboBox1.Items(inti).ToString =
ComboBox2.Items(intj).ToString Then
MessageBox.Show(ComboBox1.Items(inti))
End If
Next
Next
The answer should be modified. The loop should not go upto
the count-1 but should go upto count. Rest all is OK.
| Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
Explain how barcode create in the report?
What is the extension of the windows installer file?
How to create a set up in vb.net for desktop application please say steps with examples?
What is a fillable form?
What are window based applications?
Explain about crystal report in brief?
i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net
Is windows an application software?
What is form and its uses?
Explain the difference between listbox and combo box?
Explain how insert record in the database?
Name the two main categories of .net components.
What is dynamic linking?
How is anchoring different from docking?
How to use the FindControl() function to preselect an item in my dropdownlist?