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
How many navigational features are provided by visual studio.net ide?
How to get records from a database?
Explain the difference between listindex and tab index?
How to show a ContextMenuStrip instead of cthe default ContextMenuStrip,when you rightclick on the non client area of a window's Form or when alt+space keys are pressed
Explain the new events in textbox that has been included in vb?
how print barcode
How to use the FindControl() function to preselect an item in my dropdownlist?
To which namespace does the control class belong?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
Name the class to be inherited for creating a custom control.
Explain how to find the current record position in data control?
Explain how to split a column header in gridview using c#.net?
How save rerecord in the database?
What is the difference between pixels, points, and em’s when fonts are displayed?
What is the difference between a document and a form?