Graphic Problem

Has there been a change in how .graphics works?

This used to work but now it doesn’t:

Replace Me.Graphics in the Paint-Event with g.

Windows.Graphics and Canvas.Graphics were deprecated a long time and removed in 2018.3.

You can’t draw into a graphics object for a Window or Canvas as of 2018r3. You may only draw in the Paint event, using the Graphics context provided. What this has revealed is a flaw in the original code.

In this instance here, you can simply change to g (the Graphics context provided in the Paint event)

I’ve create a doc topic for this since it has been coming up fairly often:

Thanks everyone! Problem solved.