Results 1 to 11 of 11

Thread: Form won't close [nay bother]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member SjR's Avatar
    Join Date
    Jul 2001
    Location
    Birmingham, UK
    Posts
    336

    Wink Form won't close [nay bother]

    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:
    1. Private Sub lvwFolderList_ItemActivate(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lvwFolderList.ItemActivate
    2.  
    3.         Dim ndParentnode As clsTreeNode = CType(Me.ParentForm.Controls(2), TreeView).SelectedNode
    4.         Dim lv As ListView = CType(sender, ListView)
    5.         Dim tvw As TreeView = CType(Me.ParentForm.Controls(2), TreeView)
    6.  
    7.         tvw.SelectedNode = ndParentnode.Nodes(lv.FocusedItem.Index)
    8.  
    9. 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.
    Last edited by SjR; Dec 13th, 2002 at 05:31 AM.
    Another satisfied customer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width