I would like to draw a label on top of another label. The top label's backcolor is transparent. I would like to see the color of the bottom label's backcolor, not the backcolor of the form both labels are on. Currently when I set a label to transparent I can see through all controls behind the transparent label straight through to the form background.
I think what I need to do is override the OnPaint method and skip drawing anything that is transparent, as takrl shows with his answer to this question: How to create a transparent control which works when on top of other controls?
My problem is that Parent is always null. How do I find the parent control in the OnPaint method in VB.Net?
Protected Overrides Sub OnPaint(e As PaintEventArgs)
End Sub
EDIT 1: I cannot post pics because I do not have 10 reputation. I have a label that surrounds many other labels, lblBorder. lblBorder is invisible always except when the mouse enters it. It acts as a type of highlighter. When lblBorder, or any label inside lblBorder, is clicked a menu appears.