I am trying to search if a name exist on the Form1's listview if the button is clicked from the Form2. But for somehow, I don't know why my code is never get fired. Can someone help me with the following code. Thank for very much.
Private Sub Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn.Click Dim f1 As New Form1() For Each itm As ListViewItem In f1.lv.Items If itm.SubItems(0).Text = "Name: " & name_label.Text Then 'Never get fired here 'do something Else 'do something End If Next End Sub

New Topic/Question
Reply



MultiQuote




|