I am having a problem with using direct draw for a windowed application. Everything works in full screen exclusive mode. But when I rewrote it to use windowed mode it doesnt work. I don't have the exact code here, but what I am doing is creating the primary and secondary(back buffer) surfaces and setting the clipping region (DirectDrawClipper) to the primary surface and to a picturebox that is the size of the form. I go to add text to the screen like this

Pirmary.DrawText 50,50,"This is a Test", False

It draws it to 50,50 on the SCREEN not the form/picture box.

Or if I have a rect that is 800x600 top 0 left 0 it comes out at 0,0 on the SCREEN

How do I set DD to draw ONLY to the picturebox (or even the forms hWnd)?

What am I doing wrong?

Thanks
Chris Wilson