Add Reference :
Using Microsoft DirectX;
Using Microsoft DirectX Direct3D;
Derived from standard controls .
.
initialization .
.
.
.
After minimizing/maximizing the window, data stored on the graphics card may be lost, so it is necessary to Created Event.
.
World transformation, observation transformation, and projection transformation .
.
Render Rendering.
.
Add xPanel in the main window Form1 , and create two buttons. Also, it is best to start the rendering in a newly opened thread.
.