BitBlt

jawadh90

Member
Joined
Jun 19, 2003
Messages
18
can us gimme a sample code or a tutorial, or a walk thru with BitBlt. i dont seem to understand it and i am a little confused. i found a site but its in vb6 (flicker free sample). i tried to migrate it to vb.net but no luck in doing so...help me!
 
I suggest your work with GDI+ and double buffering. Its easier to implement. You just set the style of your form to double buffering and then draw on your form, or any other control.
Code:
SetStyle(ControlStyles.DoubleBuffering,True)
 
With DoubleBuffering on, you must also set AllPaintingInWmPaint and UserPaint styles on to be effective. Furthermore, you must also do all of your drawing inside the OnPaint handler.

If you are confused about GDI+, there is a rather large section on it in the MSDN. Do a search in your MSDN index for GDI+.
 
Back
Top