Render in a Form

Hi guys,
I've a project in vs 2003 (
http://it.geocities.com/salvodifazio/littlEngine.zip ).
My problem is:
If I write the code of Vertex.cs in CreateDevice.cs I make a beautiful
triangle otherwise if I leave the code of Vertex.cs in this file the Form is
not Rendered...
Does anyone know why?
tnx
[606 byte] By [salvodif] at [2008-2-23]
# 1

Becuase you are not drawing anything....

Put a breakpoint at the top of your render method in vertex.
Run the program
The program breaks - good render is being called
Press f10 to step and notice it returns before drawing anything
Check out the value of m_xRenderDevice and notice that its null

I tried to debug further but I wasn't too sure what was going on with your inheritance. I'm sure you can work it out from here.

TheZMan at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...