xiii
Contents
© Lou Tylee, 2005
KIDware
PO Box 28234
Seattle, WA 98118
(206) 721-2556
FAX (206) 260-9187
E-mail: support@kidwaresoftware.com
http://www.kidwaresoftware.com
Notice
This guide was developed for the course, “Visual C# Express for Kids,” produced by KIDware, Seattle, Washington. It is not intended to be a complete reference to Visual C# Express . Consult the Microsoft documentation that comes with your particular version of Visual C# Express for detailed reference information.
This guide refers to several software and hardware products by their trade names. These references are for informational purposes only and all trademarks are the property of their respective companies.
Lou Tylee
1. Introducing Visual C# Express
A Brief History of Visual C# Express 1-1
Let’s Get Started 1-4
Starting Visual C# Express 1-6
Opening a Visual C# Express Project 1-9
Running a Visual C# Express Project 1-14
Stopping a Visual C# Express Project 1-19
Stopping Visual C# Express 1-20
Summary 1-21
2. The Visual C# Express Design Environment
Review and Preview 2-1
Parts of a Visual C# Express Project 2-2
Parts of the Visual C# Express Environment 2-5
Starting a New Visual C# Express Project 2-6
Main Window 2-7
Solution Explorer Window 2-9
Design Window 2-10
Toolbox Window 2-11
Properties Window 2-12
Moving Around in Visual C# Express 2-14
Solution Explorer Window 2-14
Properties Window 2-16
Code Window 2-18
Summary 2-21
3. Your First Visual C# Express Project
Review and Preview 3-1
Steps in Building a Visual C# Express Project 3-2
Placing Controls on the Form 3-4
Example 3-5
Setting Control Properties (Design Mode) 3-7
Naming Controls 3-11
Setting Properties in Run Mode 3-12
How Control Names are Used in Event Methods 3-15
Writing Event Methods 3-17
Example 3-19
Summary 3-27
4. Project Design, Forms, Buttons
Review and Preview 4-1
Project Design 4-2
Saving a Visual C# Express Project 4-4
On-Line Help 4-6
The Form Control 4-10
Properties 4-10
Example 4-11
Events 4-12
Typical Use of Form Control 4-13
Button Control 4-14
Properties 4-14
Example 4-16
Events 4-19
Typical Use of Button Control 4-19
C# - The First Lesson 4-20
Event Method Structure 4-20
Some C# Programming Rules 4-21
Assignment Statement 4-23
Property Types 4-24
Comments 4-27
Project - Form Fun 4-28
Project Design 4-28
Place Controls on Form 4-28
Set Control Properties 4-29
Write Event Methods 4-32
Run the Project 4-37
Other Things to Try 4-38
Summary 4-39
5. Labels, Text Boxes, Variables
Review and Preview 5-1
Debugging a Visual C# Express Project 5-2
Syntax Errors 5-3
Run-Time Errors 5-6
Logic Errors 5-12
Label Control 5-13
Properties 5-13
Example 5-14
Events 5-16
Typical Use of Label Control 5-17
Text Box Control 5-18
Properties 5-18
Example 5-19
Events 5-20
Typical Use of Text Box Control 5-21
C# - The Second Lesson...
mzg1