Rendering to Control Other Than Form

Started by
0 comments, last by DmGoober 19 years, 6 months ago
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.
Alexander "DmGoober" Jhinalexjh@online.microsoft.com[Warning! This email account is not attended. All comments are the opinions of an individual employee and are not representative of Microsoft Corporation.]
Advertisement
Uh.. nevermind. It helps if I set the control's Visible property to true. =)
Alexander "DmGoober" Jhinalexjh@online.microsoft.com[Warning! This email account is not attended. All comments are the opinions of an individual employee and are not representative of Microsoft Corporation.]

This topic is closed to new replies.

Advertisement