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
What are the three states set in a checkstate property?
Which property of the progressbar control specifies the amount to increment the current value of the control?
Explain about crystal report in brief?
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 synonym of form?
Which method grants a lock on a resource?
Name the property which is used to lock a textbox to enter data?
What are the different cloud platforms?
Which window displays messages for the status of various features provided in the visual studio .net ide?
What is the extension of a compiled help project file?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
Which template creates a .net compact framework 2.0 forms application for pocket pc 2003 and later?
Name the two main categories of .net components.
What are windows based applications examples?
What is form and its types?