Results 1 to 12 of 12

Thread: Christmas Tree View - Need help...

  1. #1

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Christmas Tree View - Need help...

    got a Christmas treeview... but when I turn on the switch nothing seems to happen... any ideas what could be wrong?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Christmas Tree View - Need help...

    You mean like this one, but more Christmassy?



    As for the problem, did you check in Battle Programming 2011? I'm sure there's an article in it about christmas trees.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Christmas Tree View - Need help...

    Are you sure the tree is plugged in?

    Did you try individual branches to see if one of them is out? I've had trees where if one branch was out, the entire tree didn't work.

  4. #4

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Christmas Tree View - Need help...

    baja - no, I'm using the tree from the secular tool box... it's more green than that... And I did look in the battle book... for all the wealth of knowledge in there, this was one area it was lacking.

    hack - I see the branches, but no plug... I got the lights addon... several of them... do I need to reference them?

    man, this is all so confusing...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Christmas Tree View - Need help...

    Yes, of course. Just like any other tree object they need to be instanced.

    (I'm assuming you using the Christmas.Tree class correct?) Try
    vb.net Code:
    1. Imports System.Christmas.Tree
    2.  
    3. Public Class Form1
    4.  
    5.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
    6.     Handles Button1.Click
    7.  
    8.         Dim myLights As New TreeLights
    9.         If myLights.On = True Then
    10.             MessageBox.Show("Deck The Halls")
    11.         Else
    12.             MessageBox.Show("Deck The Tree Salesman")
    13.         End If
    14.     End Sub
    15.  
    16. End Class
    Last edited by Hack; Nov 30th, 2011 at 09:55 AM.

  6. #6
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: Christmas Tree View - Need help...

    My boss wants flashing lights! Please help!

  7. #7
    PowerPoster SJWhiteley's Avatar
    Join Date
    Feb 2009
    Location
    South of the Mason-Dixon Line
    Posts
    2,256

    Re: Christmas Tree View - Need help...

    "Ok, my response to that is pending a Google search" - Bucky Katt.
    "There are two types of people in the world: Those who can extrapolate from incomplete data sets." - Unk.
    "Before you can 'think outside the box' you need to understand where the box is."

  8. #8

    Thread Starter
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Christmas Tree View - Need help...

    Hack - that helped... except they weren't new lights, but old ones from last year... so I had to pass in the Attic.Container(contentType.Decorations) to the constructor... bleh... now some work, some dont...
    Need to test the bulbs to see which one is busted....
    Code:
    For Each Light as C7Bulb In Strand.Lights
        If not Light.Works Then
            Strand.Lights.Swap(Light, new Light(colorRandom))
        End If
    Next
    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  9. #9
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Christmas Tree View - Need help...

    Dear customer,

    we value your decision to buy out Christmas Treeview and are sorry to hear that you are having trouble with it. We have dispatched a service person to your location to resolve the problem. He will be there promptly. This is his picture:



    P.S: Please note that the tank top is not part of the company uniform.

  10. #10
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Christmas Tree View - Need help...

    Well I hope he doesn't arrive shirtless or worse.

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Christmas Tree View - Need help...

    Quote Originally Posted by baja_yu View Post
    Dear customer,

    we value your decision to buy out Christmas Treeview and are sorry to hear that you are having trouble with it. We have dispatched a service person to your location to resolve the problem. He will be there promptly. This is his picture:



    P.S: Please note that the tank top is not part of the company uniform.
    And his name is Peggy

  12. #12
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Christmas Tree View - Need help...

    I believe the lights are actually a linked list. If one of the links is broken or invalid, electrons won't be able to parse the entire list.
    My usual boring signature: Nothing

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