Krasshirsch

Hi,

 I'm not sure if this belongs in here, because I don't know wether my problem is a C# or a Dx9 issue, but ill take my shot.

I made a C# Project using VS2005 Proffessional, which includes a Picturebox, in which I render my 3D stuff using DX9c. The app also has some non DX9 standard tools, like Buttons, Textfields, etc... . The second i start rendering with the Directx device, all non DX9 stuff stops being redrawn. The Buttons still work but theres no animation, no update, the Framerate stops being updated, nothing works which includes graphical altering except the DX9 stuff rendered within the Picturebox. I tried to Refresh the Form, but nothing helps, I'd appreciate all comments, thnx.

Greetings Alexander




Re: Game Technologies: DirectX 101 C# and Dx9 trouble.

RizwanSharp

You should better post this question in Direct X forums to get better and quick response.

Best Regards,

Rizwan aka RizwanSharp






Re: Game Technologies: DirectX 101 C# and Dx9 trouble.

ahmedilyas

posting some code would also help




Re: Game Technologies: DirectX 101 C# and Dx9 trouble.

JDPeckham

You have to do your Dx9 render loop within the picture boxes OnPaint method. if you do it within the Form's onpaint method i think you would have to call base.OnPaint first before your dx9 render code (so it does dx 9 on top of the form painting)