• Advertisement
Sign in to follow this  

[.net] Rendering to part of a Form

This topic is 4555 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

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
Advertisement
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
A picturebox might be overkill you could use a panel...

Cheers

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement