I have several user controls on the form, unfortunately, when the form is displayed, the user controls show the previous background of the form, not the current background of the form.
The OnPaint event is very simple, and the OnBackgroundPaint event is empty ...
Like this:
protected override void OnPaint(PaintEventArgs pe) { pe.Graphics.DrawImageUnscaled(_bmpImage, 0, 0); } protected override void OnPaintBackground(PaintEventArgs pevent) {
How to get the current background as the transparency that is displayed, and not against the background of the previous form?
user29140
source share