CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Using DOM in VB

  1. #1
    Join Date
    Jul 2001
    Location
    TamilNadu, India.
    Posts
    10

    Using DOM in VB

    Dear Sir,

    I need to create a parent node say "subjectset" for the nodes "subject". I have already written the code, but it works well, only if the node "subject" is the immediate child node of the root element.

    What I want is, wherever may be the "subject" node, I need to create a parent "subjectset" for it. I am struggling to solve this out. Can u pls. help me out ??

    Thanks,
    Elangovan O.

  2. #2
    Join Date
    Jul 2001
    Posts
    5

    Re: Using DOM in VB


    'I do not know what is DOM, but if you're looking for
    'sintax of treeview control, here is an example:
    private Sub Command1_Click()
    With TreeView1

    .Nodes.Add , , "R", "Root"
    .Nodes.Add , , "Subjects", "Subjects"
    .Nodes.Add , , "Subjects2", "Subjects2"
    .Nodes.Add "Subjects", tvwChild, "ChildSubject", "ChildSubject"
    .Nodes.Add "Subjects2", tvwChild, "ChildSubject2", "ChildSubject2"
    .Nodes("Subjects").Expanded = true
    .Nodes("Subjects2").Expanded = true

    End With

    End Sub





  3. #3
    Join Date
    Jul 2001
    Location
    TamilNadu, India.
    Posts
    10

    Re: Using DOM in VB

    I solved the problem myself. Anyhow thanks for the code which u had sent.

    Thanks,
    Elangovan O.

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

Featured