dcsimg
Results 1 to 2 of 2

Thread: In File Browser How can I get (open) Treeview Nodes by Click ListView Folder ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2018
    Posts
    25

    In File Browser How can I get (open) Treeview Nodes by Click ListView Folder ?

    In File Browser Program, in TreeView Listing Drives and Folders and after Click TreeView Folder icon then Listing Files and Folders in Listview.

    I want to open ChildNodes (in treeview) by Clicking folder icon inside Listview.

    I mean to say if there are SubFolders under a Folder and when I click Folder inside Listview same Time open in TreeView to that Subfolder as child Nodes.


    I found this Code (VB6) but cant convert it into .NET (I am not sure if its correct code)

    Dim nodChild As Node
    Dim sLVItem As String
    Set nodChild = TreeView1.SelectedItem.Child
    sLVItem = ListView1.SelectedItem

    Do While ((nodChild Is Nothing) = False)
    If (nodChild = sLVItem) Then
    nodChild.Selected = True
    Exit Do
    End If
    Set nodChild = nodChild.Next
    Loop


    is there any way to do this in Vb.Net just with codes (not with an Ocx or etc.) ?

    Advanced thanks.

  2. #2
    Fanatic Member
    Join Date
    Feb 2003
    Posts
    691

    Re: In File Browser How can I get (open) Treeview Nodes by Click ListView Folder ?

    This looks like vb6 code and this is a .net forum. Also use code tags when posting code.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width