Resolved Moving a picture: unwanted white spot

DaSchmarotzer

New member
Joined
May 10, 2011
Messages
2
Programming Experience
Beginner
Hello,

I am new to vb.net (and it is my first programming language) so I learn by reading, messing around and creating random programs. I just created a small two-players game but I have a problem: when I move a picture box using the arrow keys, there is a white square that appears for a few split seconds, making the game look unprofessional. I'm not saying that the graphics are good or that I'm a pro though. ;)

Here is a 2 seconds clip to show you what I mean.

[video=youtube;nks9dnF4khU]http://www.youtube.com/watch?v=nks9dnF4khU[/video]

Any help would be appreciated! Keep in mind that I am not an expert though. Thanks!
 
Last edited:
What the DoubleBuffered property does is cause any changes to the form to be drawn to a bitmap in the background first and then that bitmap to be drawn to the form. This ensures that any changes that result in a series of visual changes are all implemented as a single unit, thus helping to prevent flicker and other artefacts like what you experienced.
 
Back
Top