[.net] Rendering to part of a Form
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement