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:
Private Sub ListView1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ListView1.SelectedIndexChanged
Dim i As Integer
For Each item As ListViewItem In ListView1.SelectedItems
i = item.Index
Private Sub ListView1_ItemActivate(sender As Object, e As EventArgs) Handles ListView1.ItemActivate
SerialPort1.PortName = ListView1.FocusedItem.SubItems(1).Text
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.