A
Adam Clauss
I have a completely user-drawn user control in which I enabled transparency
(follownig suggestions at
http://www.c-sharpcorner.com/Upload...rols11152005074108AM/TransparentControls.aspx)
The user control does not contain any other controls; I manually draw
contents in the OnPaint override I created.
My problem is that the control does not always draw itself properly.
Sometimes NONE of the control appears (on top of the 'background' controls).
Other times, only part of the control appears. Dragging the control so it
is offscreen and back on, or minimizing and restoring sometimes forces it to
redraw, sometimes not. The whole thing just seems very inconsistent.
Possibly, part of the problem is I am drawing it on top of a MapPoint map
(using the MapPoint ActiveX control). I have put manual calls to
SendToFront() on my user control everytime the 'view' of the MapPoint
control (and SendToBack() on the MapPoint control).
I'm not convinced that this is a 'layer' problem though, as that would not
cause PART of my control to draw itself, and part to not draw. If I remove
the transparency, everything seems to work fine, my user control is always
visible.
Any suggestions?
(follownig suggestions at
http://www.c-sharpcorner.com/Upload...rols11152005074108AM/TransparentControls.aspx)
The user control does not contain any other controls; I manually draw
contents in the OnPaint override I created.
My problem is that the control does not always draw itself properly.
Sometimes NONE of the control appears (on top of the 'background' controls).
Other times, only part of the control appears. Dragging the control so it
is offscreen and back on, or minimizing and restoring sometimes forces it to
redraw, sometimes not. The whole thing just seems very inconsistent.
Possibly, part of the problem is I am drawing it on top of a MapPoint map
(using the MapPoint ActiveX control). I have put manual calls to
SendToFront() on my user control everytime the 'view' of the MapPoint
control (and SendToBack() on the MapPoint control).
I'm not convinced that this is a 'layer' problem though, as that would not
cause PART of my control to draw itself, and part to not draw. If I remove
the transparency, everything seems to work fine, my user control is always
visible.
Any suggestions?