Rendering to Control Other Than Form
I've been trying to get Managed Direct3D to render to a control other than Form. I've set the control's style with:
this.Setstyle(Controlstyles.AllPaintingInWmPaint | Controlstyles.Opaque, true);
this.Updatestyles();
And tried overriding OnPaint. Unfortunately, OnPaint is never called, and the control remains blank.
Is AllPaintingInWmPaint a style that only applies to forms? Anyone have any hints?
Thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement