InterviewSolution
Saved Bookmarks
| 1. |
Suppose I Have Two Combo Box .. And I Have Some Items In Both Combo Box Now I Need To Check The Item In Both Combo Box If Same Item Is Present In Both Combo Box I Need To Display That Item In Message Box? |
|
Answer» 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 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 |
|