I have a direct draw handle that i need to draw a rectangle to. but in c# the drawing is done on the paint events. How can I draw using a directdraw handle?
Technically,
you don't need to use the Paint event. Sounds like you're working
on some kind of game, you probably have a main loop where you generate
scenes at a rate of (hopefully) no less than 30 per second. Just
blast your rectangle to the screen, don't wait until Windows tells you
it is ready to paint...