i am also working on transparent control
and also encounter layer problem

i did search a lot of site but can't find the solution

only thing to maintain the z-order well is get rid off the transparent property in the custom control.

when i remark (for control transparent)
cp.ExStyle = cp.ExStyle Or &H20
Return cp

the z-order is fine.
...