Results 1 to 2 of 2

Thread: TreeView in own ActiveX controls

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Posts
    1

    TreeView in own ActiveX controls

    Hi!
    Since I'm relatively new to VB I hope my question is not too stupid but I found nothing related to my question on the web. So here we go:

    I would like to design my own OCX with a TreeView in it. The problem that appears is that in my customized OCX there is no "Node" nor "Nodes" available. Without Nodes the whole tree will remain empty. And this doesn't make the OCX very useful. In my naive thinking I thought all the possibilities of a TreeView would be taken over from my own OCX. That seems to be wrong.

    Does anybody know how I can use the object type "Node" and "Nodes" without reimplementing it?

    -David

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    You could expose the Treeview's Node collection as a property of your OCX. To be able to use the Node object the client application would still need to reference the Windows Common Control Component as well.

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