This one is really baffling me..
My project adds controls in a For Next loop at startup, each control when added has AddHandlers specified to link the mouse events to that control. I then pass the event that is called to a function which sets the properties of that control.. so now I can change the image or text properties for each event.
Here's the problem. I call the Setproperties function when the control is originally created, and then each time an event is called.
The first control that is added works fine, it responds to all events, and sets the properties for each.
Every control after that, when it is originally added it sets the properties, but does not set them when the events occur. The events are however firing, it's just not setting the properties for the event. Any ideas as to why this might be happening?
I am sure this might be confusing, and I can add the code when I get home, but it's been bothering me all day!
Thanks in advance,
liquid8
My project adds controls in a For Next loop at startup, each control when added has AddHandlers specified to link the mouse events to that control. I then pass the event that is called to a function which sets the properties of that control.. so now I can change the image or text properties for each event.
Here's the problem. I call the Setproperties function when the control is originally created, and then each time an event is called.
The first control that is added works fine, it responds to all events, and sets the properties for each.
Every control after that, when it is originally added it sets the properties, but does not set them when the events occur. The events are however firing, it's just not setting the properties for the event. Any ideas as to why this might be happening?
I am sure this might be confusing, and I can add the code when I get home, but it's been bothering me all day!
Thanks in advance,
liquid8