   Playin with Managed DX
  I''ve been just playing with Managed DX. Didnt take much to get some VB''s on the screen...but due to my lack of C# knowledge. I can''t figure this out. When I resize the windows form, nothing is drawn anymore. I don''t know if this is a reset thing or a resize thing or what. I have my DX debug runtime enabled with maximum output and validation, and I''m not getting any errors. Any ideas?   Brian J
  try putting a this.Invalidate() call after the device.Present in your Draw function. ;  Well I''m actually rendering on my own, not using the paint event. but thanks anyway. ;  When you look at samples, you see that usually the initialization is in two parts, one is a one-time init, the other is usually called restoreobjects() and creates VB''s etc.If you resize, you call device.reset() and that unloads all objects from video card memory. The onresize handler usually points to a function that does invalidate-reset-restore.If you created a VB with default storage, it''s only on the card and you need to restore it yourself.If you create all objects using managed storage then directx handles this for you.;  See yeah, I used POOL MANAGED. Plus...none of the calls fail, it simply doesn''t render to the surface. I think the device is being reset automatically by DX (using managed DX) but I dont think I''m losing my VBs. Could it be that all my RenderStates and Transform matrices are lost also?   Brian J;  Yes, after a Reset you need to set your RenderStates and Transforms.   Stay Casual,KenDrunken Hyena