1 solution

Solution 1

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.