|
-
Nov 30th, 2011, 08:19 AM
#1
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
-
Nov 30th, 2011, 08:36 AM
#2
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.
-
Nov 30th, 2011, 08:52 AM
#3
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.
-
Nov 30th, 2011, 09:25 AM
#4
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
-
Nov 30th, 2011, 09:32 AM
#5
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:
Imports System.Christmas.Tree
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
Dim myLights As New TreeLights
If myLights.On = True Then
MessageBox.Show("Deck The Halls")
Else
MessageBox.Show("Deck The Tree Salesman")
End If
End Sub
End Class
Last edited by Hack; Nov 30th, 2011 at 09:55 AM.
-
Nov 30th, 2011, 01:30 PM
#6
Re: Christmas Tree View - Need help...
My boss wants flashing lights! Please help!
-
Nov 30th, 2011, 01:55 PM
#7
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."
-
Nov 30th, 2011, 02:16 PM
#8
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
-
Nov 30th, 2011, 04:47 PM
#9
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.
-
Nov 30th, 2011, 05:41 PM
#10
Re: Christmas Tree View - Need help...
Well I hope he doesn't arrive shirtless or worse.
-
Dec 1st, 2011, 10:27 AM
#11
Re: Christmas Tree View - Need help...
 Originally Posted by baja_yu
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
-
Dec 1st, 2011, 10:57 AM
#12
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|