Head First C# Code: Chapter 13, Controls and Graphics
Sometimes you have to take graphics into your own hands.
We've spent a lot of time on relying on controls to handle everything visual in our applications. But sometimes that's not enough—like when you want to animate a picture. And once you get into animation, you'll end up creating your own controls for your .NET programs, maybe adding a little double buffering, and even drawing directly onto your forms. It all begins with the Graphics object, Bitmaps, and a determination to not accept the graphics status quo.
Download the Code
- BeeControl (Picturebox) (zip)
- BeeControl (UserControl) (zip)
- Beehive Simulator (UserControls) (zip)
- Image Resizing (zip)
- A 30-Second Tour of GDI+ Graphics (zip)
- Nectar Here (zip)
- Sharpen Your Pencil 1 (zip)
- Sharpen Your Pencil 2 (zip)
- Drawing Bees (zip)
- Zoomer (zip)
- Beehive Simulator (Graphics) (zip)
- Print a Bee (zip)
- Beehive Simulator (Printing) (zip)






