[SOLVED] Bug!.. when i add the Paint event to MyDesktop

Answered Closed
0
0

 

 

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..

  • You must to post comments
Best Answer
0
0

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

  • You must to post comments
Showing 1 result