Help with ControlsEx

Discussion in 'Questions (Windows Mobile)' started by jrb5564, Sep 8, 2007.

  1. jrb5564

    jrb5564 New Member Licensed User

    First let me say I'm new to the the product and this forum, so if I make a mistake or ask a dumb question, please be gentle.

    I just upgraded to version 5.5 and then followed the Web instructions for downloading and installing the ControlsEx library. I opened a new project, created a blank new form and saved it. I copied the sample code from the TreeView help, replacing the default code you get with a new project.

    Running the program, I receive:

    Error compiling program,
    Error description: tv is not a nown control or object.
    Occurred on line: 10
    tv.New1("Form1", 5, 10, 200, 200)

    I'm sure I'm missing something simple here. Thanks in advance for your wise counsel.

  2. Erel

    Erel Administrator Staff Member Licensed User

    There are two things you should first do:
    1. Add the ControlsEx library to your project: Tools - Components - Add Both - ControlsEx.dll
    2. Add a TreeView control named tv: Tools - Add Object - TreeView - tv
    See this page for more information about external libraries:
  3. jrb5564

    jrb5564 New Member Licensed User


    Thanks again for your quick response. I had added the component, but missed the add object. I also figured out that I had to add node objects as well. Can objects (i.e., new nodes) be added at runtime?

    Again, thanks

  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes, using the AddObject keyword.
  5. jrb5564

    jrb5564 New Member Licensed User

    oops, never mind... I just finished reading your suggested link. tx jrb
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice