Building an Object Example Project
The only way to really grasp what objects are and how they work is to use them. I've said this before but I can't say it enough: everything in C# is an object.
You're about to create a sample project that uses objects. If you're new to programming with objects, you'll probably find this a bit confusing. However, I'll walk you through step by step, explaining each section in detail.
The project you're going to create consists of a single form with one button on it. When the button is clicked, a line will be drawn on the form beginning at the upper-left corner of the form and extending to the lower-right corner.
In Hour 10, “Drawing and Printing,” you'll learn all about the drawing functionality within C#.