Search code examples
c#.netwinformsevents

How do I call paint event?


My program draws text on its panel,but if I'd like to remove the text I have to repaint.

How do I call(raise) the paint event by hand?


Solution

  • The Invalidate() Method will cause a repaint.

    MSDN Link