Sign in to follow this  
Etherstar

[.net] Rendering to part of a Form

Recommended Posts

I'm currently creating a map editor program for my current project, and I'm trying to figure out how I render to a portion of the map editor's Windows Form using Managed DirectX. If some one who has knowledge of the theory behind how this is done, their advice would be greatly appreciated.

Share this post


Link to post
Share on other sites
Instead of rendering to the form, put a PictureBox where you want the rendered screen to be. Then when you create your device pass the handle of the PictureBox instead of the form. When you render with that device it will draw directly into the PictureBox.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this