Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


DirectX 3D in a Picturebox or Panel on a Form C#.NET

This topic is 5280 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am trying to make an app, with full windows functionality in C#.NET with Menus etc, and a small DX3D display area for the image. I am trying to use the Picturebox or Panel control to no avail. Does anyone have any example code I could use Many thanks

Share this post

Link to post
Share on other sites

I think you can use any Control... but I''ve only tested this with a Panel.

Just pass the panel object (in this case, myPanel) to the constructor of the D3D Device like this:

Device pDevice = new Device(0, DeviceType.Hardware, myPanel, CreateFlags.SoftwareVertexProcessing, presentParams);

Hope this helps.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!