I tried setting the forms minimum size in the constructor but no go -
this.MinimumSize = new Size(1,1);
This is the error from the call stack -
and heres the code where its crashing when the app breaks -
[code]
public void OnResetDevice(object sender, EventArgs e)
{
Device dev = (Device)sender;
// Turn off culling, so we see the front and back of the triangle
dev.RenderState.CullMode = Cull.None;
// Turn off D3D lighting, since we are providing our own vertex colors
dev.RenderState.Lighting = false;// <---breaks here****
}
[/code]
Thanks for your speedy reply marble_eater 