I have another form (camera.cs) which inherits from LayeredForm. This works perfectly when compiled, however in design mode it says "Error Creating Window Handle"

But since camera.cs is all dynamic (ie no controls on it jus stuff being painted on) its perfectly fine. However I want to create another form and put controls on it so I'd like to inherit from this form.

its a small class (couple of methods) but I think the problem arises becuase it uses GDI to draw the form.

http://pastebin.com/m33b54bb3