Enclosed is an example of using SetPixel().
This example, which I like to call 'flies', creates a black picturebox.
Then once you click inside the PictureBox, it will create what looks like lots of flies.
When you move the mouse cursor around they try to get away from the cursor.
I think it looks quite nice
If you have any queries or comments, just let me know.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain: I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country