How to draw on top of a child control with another control-
I have a user control A, that contains usercontrol B and C. C is the last control in the ControlCollection class of A.
All A, B and C have their own paint events.
UserControl A contains Usercontrol B. UserControl B contains a Panel and a button.
UserControl C (a transparent control) is used to represent an invalid state of A. If A is invalid, C is drawn with (X) mark in red color.
Everything works fine at design time. At run time, C is drawn behind B. I want to draw C on top of B.
I have tried many combinations, like sending B to back, bringing C to front, calling A.Invalidate in B's paint event etc but with no success.
Any help is appreciated