Hi,
When I add the event MyDesktop_Paint…. Handles Me.Paint
Private Sub MyDesktop_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
‘without any code inside
End Sub
The dektop will not be painted..
It’s not painted because you are not painting it 🙂
Try this e.Graphics.FillRectangle(Brushes.Red, e.ClipRectangle) instead of “without any code inside“.
There is also a full custom painting example here: https://wisej.com/examples.
HTH
Best,
Luca