Skip to content

Bug!.. when i add the Paint event to MyDesktop #369

Closed

Description

@itg-assistant

Niko asked 2016-11-08 17:46:48 UTC

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

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-11-08 19:52:30 UTC

    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: http://wisej.com/examples.

    HTH

    Best,

    Luca

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions