Results 1 to 8 of 8

Thread: Why can't the treeview function?? Please Help

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2006
    Posts
    61

    Exclamation Why can't the treeview function?? Please Help

    VB Code:
    1. Private Sub TreeView1_MouseDown(Button As Integer, Shift As Integer, x As Single, Y As Single)
    2.  
    3. If strKEy <> "" Then
    4. If TreeView1.Nodes(strKEy).Parent Is Nothing Then
    5.  
    6. If Button = 2 Then ' if the mousebutton 2 is pressed (right)
    7. PopupMenu rclick ' then it calls the menu which is hidden to be shown
    8. ' at the cordinates of the mousepointer (x,y)
    9.  
    10. Else
    11.  
    12. Button = 1
    13. RemoteHost = TreeView1.Nodes(strKEy).Text
    14. sckControlPanel.RemoteHost = RemoteHost
    15. sckControlPanel.RemotePort = 8005
    16. sckControlPanel.Connect
    17.  
    18. End If
    19. End If
    20. Else
    21.  
    22. sckControlPanel.Close
    23. Call sckControlPanel_Close
    24.  
    25. End If
    26.  
    27. Data1.Refresh
    28. End Sub
    This is the code i used in the treeview but i all the function which i put in can't function for example the right click pop up or even the left click to make the connection can;t even work. Please can anyone help me..
    Thanks alot in advance
    Last edited by Hack; Mar 3rd, 2006 at 01:12 PM. Reason: Added [vbcode] [/vbcode] tags and for more clarity.

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