My form won't close - the 'closing' and 'closed' events are not firing when I click on the 'X'
I've isolated this piece of code as the culprit... activated when you double click on a listview item.
VB Code:
Private Sub lvwFolderList_ItemActivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lvwFolderList.ItemActivate Dim ndParentnode As clsTreeNode = CType(Me.ParentForm.Controls(2), TreeView).SelectedNode Dim lv As ListView = CType(sender, ListView) Dim tvw As TreeView = CType(Me.ParentForm.Controls(2), TreeView) tvw.SelectedNode = ndParentnode.Nodes(lv.FocusedItem.Index) End Sub
The list view is part of a user control that I've created which is added to a panel in the main form that I'm trying to close. The referenced TreeView is on the main form.
Anyone see what I'm missing?
Thanks in advance for any help.
![]()






Reply With Quote