Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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!
  • *Experts*
Posted

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.

SetStyle(ControlStyles.DoubleBuffering,True)

  • *Experts*
Posted

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+.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...