This is my first contribution to this forum, and I look forward to an experience that is mutually beneficial. My issue is with a Listview which I originally created in a parent form and which worked as designed per expectations. I moved the Listview to a child form along with its VB2010 code. All other controls on the child form (buttons, labels, etc) work as they are expected. The Listview control though does not, and I am lost for reasons why a once functional Listview is no longer working.
Here's my code I use to select, then activate the selectino in Listview:
Code:
Private Sub ListView1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ListView1.SelectedIndexChanged
With Me.ListView1
Dim i As Integer
For Each item As ListViewItem In ListView1.SelectedItems
i = item.Index
Next
End With
End Sub
Private Sub ListView1_ItemActivate(sender As Object, e As EventArgs) Handles ListView1.ItemActivate
SerialPort1.PortName = ListView1.FocusedItem.SubItems(1).Text
SerialPort1.Open()
Timer3.Start()
End Sub
When a breakpoint is placed at Private Sub ListView1_SelectedIndexChanged, code editor does not open. The same occurs when a breakpoint is placed at Private Sub ListView1_ItemActivate (ie code editor does not open).
Thank-you for you help with this issue.
Regards,
DRC