CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2000
    Location
    Ireland
    Posts
    503

    Activex Tree ctrl

    Hi there,
    i've converted a 97 msaccess project from version 97 to version 2000, but there seems to be a problem with the treectrl that i'm using

    Tree.Font.name = "Tahoma"

    this gives an error, cause the Tree that i've registered doesn't support this methos Font! has anyone ever come accross this problem?

    thanks for any help
    brian.

    Of course I do it for the ratings!

  2. #2
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    56

    Re: Activex Tree ctrl

    Hi Brian,

    It just looks like your using the wrong TreeCtrl Version. The TreeCtrl should support Font="Tahoma" so double check your version.

    Try using a different Font to test on.

    Don't forget to rate!!!

    Andrew Lennon (Berlitz)
    Automation Dev Engineer

  3. #3
    Join Date
    May 2000
    Location
    Ireland
    Posts
    503

    Re: Activex Tree ctrl

    It's kinda funny,
    if i add an activex microsoft treeview ctrl to my form, and name it say "mytree" i cannot call the font method on it.

    but if i
    Dim mytree as TreeCtrl
    i can call mytree.Font etc?

    I dont really know vb so please forgive me if im doing something really stupid.

    p.s. your last reply has been rated
    brian.

    Of course I do it for the ratings!

  4. #4
    Join Date
    Mar 2002
    Posts
    2

    Re: Activex Tree ctrl

    Are you adding the TreeCtrl from the Toolbox, after selecting Microsoft Windows Common Controls from the Component Dialog.

    Don't forget to rate!!!


  5. #5
    Join Date
    May 2000
    Location
    Ireland
    Posts
    503

    Re: Activex Tree ctrl

    I couldn't find any component options, i just clicked on add activeX ctrl from the tools menu in the msaccess and added a microsoft treeview ctrl. it's funny that when i dimmed an object of that type everything was ok. it was something to do with what ctrl was registered for the project i think, it's working now, was messing with registering ctrls, don't know exactly what fixed it.

    thanks for ur help
    brian

    Of course I do it for the ratings!

  6. #6
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    56

    Re: Activex Tree ctrl

    In VB,
    Go to Projects\components : a dialog will appear.

    Scroll down the dialog to Windows Common Controls and select it and OK the dialog.
    In the Toolbox in the left pane a series of controls appear, double click the treview control to add it to your form and use this one.

    Andy

    Don't forget to rate !!!!

    Andrew Lennon (Berlitz)
    Automation Dev Engineer

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