MouseEnter runtime children glitch

Hey guys,

I was a student studying VB.NET for a year, but now I am learning it on my own, but, in turn, I and probably going the wrong way with a lot of my coding.

At runtime, my application creates a new panel
(
Dim pnl As New Panel
.....
Form1.Controls.Add(pnl)
AddHandler pnl.MouseEnter, AddressOf PanelEnter
AddHandler pnl.MouseLeave, AddressOf PanelLeave
)

And within that panel, I add items including some Labels, using similar code to above, except for the AddHandlers part.

Anyway, when the mouse rolls over the panel, I want it to change color, and then change back when the mouse leaves, but my problem lies in whenever the mouse rolls over one of the Labels within the main panel, it acts as tho it has left the panel and changes the color back.

I'm sure i'm just doing some silly coding error in relation to parents/children so any help would be great.

[911 byte] By [RhysPatto] at [2008-2-5]