Adding objects
You need to back up a little. Indeed, it appears you may have "glossed over" Chapter 1. On page 12, the book tells you how to move an object from the Toolbox to a form. Page 13 tells you how to change an object's property (the Text property is used in the example). Re-read pages pages 11-16 and you should see how to change the properties of an object. Chapter 2 goes into more detail, but you need to understand the basics in Chapter 1 first. As mentioned in the book, you can always call up the Properties Window by pressing F4.
It is VERY important that you understand the approach I use for starting a new project, because it is a little different than the way most books teach you how to do it. Every program in the book starts with the same frmMain shell, as shown in Listing 2-1 (pp. 38-39). In fact, I have this little chunk of code stored in my Programming directory as frmMain.cs. I always start a project by adding that file to the project using the details presented in the book (pp. 38-40). Pages 40-46 also present more details on how to set an object's properties.
Please go back and re-read Chapter 1 and then slowly read Chapter 2. I think you'll find all the answers to your questions. Thousands of novice programmers have learned how to program, and so can you. Take your time, think about the design of your programs (using the Five Program Steps) no matter how simple they seem before you start coding, and then start to write your program and you'll do just fine.
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)
|