dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: TreeView Isssue

  1. #1
    Join Date
    Aug 2008
    Posts
    33

    TreeView Isssue

    Greetings;

    I'm having an issue with my Treeview control where I'm not getting the +/- icons in order to collapse and expand the tree as required.

    Nodes are otherwise displaying appropriately.

    I can't find anything in properties that jump out. I've changed Linestyle to 1-tvwRootLine which appears to do nothing.

    Here's my code

    /code
    Private Sub Form_Load()
    Dim Node(1 To 200) As Node
    Dim Node1 As Node
    Dim intY, intC, intNode As Integer

    intNode = 1

    'Sets root to message type

    Set Node(intNode) = TV.Nodes.Add(, , "root", MSG(1, 8))

    'Sets Lvl 1 Child nodes to segment descriptors

    For intCount = 1 To 20
    intNode = intNode + 1
    If MSG(intCount, 0) <> "" Then
    strX = MSG(intCount, 0) & Str(intCount)
    Set Node(intNode) = TV.Nodes.Add("root", tvwChild, strX, MSG(intCount, 0))


    'Sets Lvl 2 Child Nodes to field descriptors

    Select Case MSG(intCount, 0)
    Case "MSH":
    For intC = 1 To 17
    intNode = intNode + 1
    strT = MSG(intCount, 0) & intCount & intC
    Set Node(intNode) = TV.Nodes.Add(strX, tvwChild, strT, LMSH(intC))
    TV.Nodes(strT).EnsureVisible
    Next
    End Select

    End If
    Next

    End Sub
    /code

  2. #2
    Join Date
    Aug 2008
    Posts
    33
    Found it

    Set style to tvwPlusMinus

  3. #3
    Join Date
    Mar 2008
    Location
    Lancashire, UK
    Posts
    156
    Thanks for posting the soloution

Similar Threads

  1. problem with treeview and its reference
    By metalhead in forum VB Classic
    Replies: 1
    Last Post: 06-30-2008, 01:29 PM
  2. Replies: 1
    Last Post: 01-22-2007, 06:38 AM
  3. TreeView Component and XML
    By asilter in forum ASP.NET
    Replies: 0
    Last Post: 05-01-2006, 11:59 AM
  4. Replies: 0
    Last Post: 03-08-2006, 09:26 AM
  5. Thin Client and Treeview
    By Martin Kaschke in forum Enterprise
    Replies: 3
    Last Post: 04-10-2000, 05:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center