Click here to Skip to main content
15,888,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi please guide me to Rendering DirectX to a picture box control or any control
create and render a direct 3D window inside a picturebox Or panel or anything... .


thanks for any help
Posted
Updated 6-Jan-13 9:48am
v8

1 solution

This is ridiculous: if you are using DirectX, you don't need PictureBox, which is just a very simple control used to do the simplest things. Unless you want to show some static image in highly simplified way, just forgot this highly abused control. What is really used to render graphics is never a PictureBox.

The second idea is this: if you already use VB.NET, you use .NET. It means that you don't need to use DirectX directly (pun unintended :-)). This is not so easy to do. You can be better off if you use WPF instead. The WPF library is fully based on DirectX and the easy of use of a .NET library. Even easier: the problem with System.Windows.Forms or any other UI based on GDI+ is that its graphics cannot live with DirectX graphics well; these kinds of graphics are implemented in different levels and do not combine. With WPF, you don't have this problem.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900