Make sure the "Prefer 32-bit" option is checked. You can find this option from 'Build' page of project setting.
Change project's build configuration from 'Any CPU' to 'x86' architecture.
- Make your windows form or control inherited from
D2DForm
orD2DControl
class. - Override
OnRender
method to draw anything on the form or control (Do not overrideOnPaint
method)
Learn more at GitHub