Adding TreeView at runtime (VB6)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    Adding TreeView at runtime (VB6)

    I want to add a treeview at runtime. When I try

    tvwTree = Controls.Add("M SComctlLib.Tree Ctrl", "tvwTree")

    I get an error saying that I can't add the control because there are no other TreeViews being used on the form. It then invites me to uncheck a box in "Project Options"-- and apparently that will fix it. The only problem is, I can't find where they're talking about. Hopefully, somebody here knows. Thanks in advance.
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    #2
    Found it... it is on the "make" tab of project proprties... not project options. o_O

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by Sick0Fant
      Found it... it is on the "make" tab of project proprties... not project options. o_O
      Ah, you're just too quick for us.

      Thanks for sharing the answer, it could be helpful for others who run into the problem.

      Comment

      Working...