Visual C# 2005 Demystified / Edition 1

Visual C# 2005 Demystified / Edition 1

by Jeff Kent
ISBN-10:
0072261706
ISBN-13:
9780072261707
Pub. Date:
09/30/2005
Publisher:
Osborne
ISBN-10:
0072261706
ISBN-13:
9780072261707
Pub. Date:
09/30/2005
Publisher:
Osborne
Visual C# 2005 Demystified / Edition 1

Visual C# 2005 Demystified / Edition 1

by Jeff Kent

Paperback

$38.0 Current price is , Original price is $38.0. You
$38.00 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores
  • SHIP THIS ITEM

    Temporarily Out of Stock Online

    Please check back later for updated availability.


Overview

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.


There’s no easier, faster, or more practical way to learn the really tough subjects

Visual C# 2005 Demystified explains the language and its libraries and applications as well as how to use the integrated development environment. This self-teaching guide comes complete with key points, background information, quizzes at the end of each chapter, and even a final exam. Simple enough for beginners but challenging enough for advanced students, this is a lively and entertaining brush-up, introductory text, or classroom supplement.


Product Details

ISBN-13: 9780072261707
Publisher: Osborne
Publication date: 09/30/2005
Series: Demystified
Pages: 330
Product dimensions: 7.30(w) x 9.00(h) x 0.78(d)

About the Author

Jeff Kent (Los Angeles, CA) is an Associate Professor of Computer Science at Los Angeles Valley College in Valley Glen, California. He teaches a number of programming languages, including Visual Basic, C++, C#, Java, and Assembler. He also manages a network for a Los Angeles law firm. He has written several books on computer programming, recently Visual Basic.NET: A Beginner's Guide and C++ Demystified (McGraw-Hill/Osborne) and, concurrently with this book, Visual C# 2005 Demystified (McGraw-Hill). He graduated from UCLA with a Bachelor of Science degree in Economics and then went on to obtain a Juris Doctor degree from Loyola (Los Angeles) School of Law and to practice law.

Table of Contents

Acknowledgmentsxv
Introductionxvii
Chapter 1Getting Started with Your First Windows Program1
Obtaining and Installing Visual C# 20052
System Requirements2
Choosing the Right Version3
Installing Visual C# 20054
Starting Your First Visual C# 2005 Project4
Starting the Program5
Specifying the Type of New Project6
Specifying the Name and Location of the Project7
Integrated Development Environment (IDE)8
Run the Project!9
What Is a Computer Program?11
What Is a Programming Language?13
Translating the Code for the Computer14
Conclusion14
Quiz15
Chapter 2Writing Your First Code17
Starting an Existing Project18
Design View and Code View20
Object Browser20
Classes and Objects25
Inherits25
Namespaces25
.NET Framework26
Properties27
Properties Window27
Changing Properties at Design Time28
What Is a Windows Application?29
Windows Applications Are Gooey30
Windows Applications Are Event-Driven33
Classes Have Events34
Creating an Event Procedure34
Creating an Event Procedure Stub35
Writing Code Inside the Event Procedure37
Conclusion40
Quiz41
Chapter 3Controls43
Adding Controls to the Form44
Toolbox44
Copying a Control from the Toolbox to the Form45
Changing the Control's Location47
Changing the Control's Size49
Important Label Properties50
Text Property50
Name Property51
The Label Control in Action52
Mouse Coordinates52
Creating the Application53
How the Code Works54
Using Event Procedure Parameters56
What If You Type the Wrong Code?56
ToString Method58
Delegate59
Conclusion60
Quiz61
Chapter 4Storing Information-Data Types and Variables63
Data Types64
Numeric Data Types65
Text Data Types65
Data Types of Visual C# Properties66
Variables68
Declaring a Variable68
Where Do I Declare a Variable?71
Constants74
Declaring a Constant75
Why Use Constants?76
Conclusion77
Quiz78
Chapter 5Letting the Program Do the Math-Arithmetic Operators79
Arithmetic Operators80
The Addition Operator80
The Subtraction Operator81
The Multiplication Operator81
The Division Operators81
Operator Precedence82
Combining Arithmetic and Assignment Operators83
Increment and Decrement Operators84
The Parse Method85
Class Methods86
Change Machine Project86
Creating the Project87
The Algorithm89
Conclusion91
Quiz92
Chapter 6Making Comparisons-Comparison and Logical Operators93
Debugging94
Comparison Operators96
Numeric Comparison Operators96
String Comparisons98
Precedence99
Logical Operators99
The && Operator100
The & Operator101
The [double vertical line] Operator101
The [vertical bar] Operator102
The ^ Operator102
The ! Operator103
Precedence104
Why && and [double vertical line] in Addition to & and [vertical bar]?104
Conclusion105
Quiz105
Chapter 7Making Choices-if and switch Control Structures107
Creating a Test Project108
The if Control Structure108
The if Statement109
The if ... else Statement113
The if ... else if Statement116
Input Validation117
Exceptions118
Controls Used for the if Control Structure122
CheckBox Control122
RadioButton Control123
Pizza Calculator124
Creating the Project125
How the Project Works125
The Code125
The switch Control Structure128
Syntax128
The switch Control Structure in Action129
The break Keyword131
Choosing Between if ... else if and switch132
Conclusion132
Quiz133
Chapter 8Repeating Yourself-Loops and Arrays135
Loops136
The for Statement136
The continue Keyword144
The foreach Statement147
The while Statement147
The do while construct150
Arrays150
Declaring Arrays150
Assigning Values to the Array151
Conclusion153
Quiz154
Chapter 9Organizing Your Code with Methods155
Defining and Calling a Method156
Terminology of a Method156
Naming a Method158
Defining a Method158
Calling a Method159
Parameters-Sending Information to a Method161
Passing Arguments by Value161
Passing Arguments by Reference164
Returning a Value from a Method169
Syntax169
How the Value Is Returned170
Saving the Return Value170
Returning a Boolean Value171
Conclusion172
Quiz173
Chapter 10Helper Forms175
Message Boxes176
Creating the Project177
Message Boxes Are Modal178
Show Method178
Using the Show Method's Return Value182
Dialog Forms184
Creating the Project184
Showing the Dialog Form and Returning Its Result188
Accessing Values from the Dialog Form190
Modal vs. Modeless190
Conclusion191
Quiz192
Chapter 11Menus193
Creating a Main Menu194
Adding a MenuStrip Control to a Form195
Adding Menu Items to the MenuStrip196
Enhancing the Menu Items201
Adding Functionality to the Menu Items203
Disabling Menu Items204
Creating a Context Menu205
Adding a ContextMenuStrip to a Form205
Adding Menu Items to the ContextMenuStrip207
Adding Functionality to Context Menu Items210
Text Editor Project212
Creating the Project212
Explanation of the Code214
Conclusion215
Quiz215
Chapter 12Toolbars217
Creating a Toolbar218
Adding a Toolbar to a Form218
Adding Buttons to the Toolbar219
Associating Images with Toolbar Buttons221
Associating Code with Clicks of Toolbar Buttons229
Conclusion230
Quiz231
Chapter 13Accessing Text Files233
Open and Save File Dialog Boxes234
Adding an OpenFileDialog Control to Your Form234
Showing the OpenFileDialog Control235
Determining Whether Open or Cancel Is Chosen236
Identifying the File to Open237
SaveFileDialog Class238
Reading from a Text File240
StreamReader Class240
Reading the Text File into the TextBox242
Closing the Text File243
Writing to a Text File244
StreamWriter Class244
Writing from the TextBox to the Text File245
Closing the Text File246
Conclusion247
Quiz247
Chapter 14Databases249
Installing the Database250
Obtaining the Northwind Traders Database250
Installing the Northwind Traders Database250
Connecting to the Database251
Using Server Explorer254
Exploring the Database255
Exploring the Customers Table256
Database Project258
What the Project Does258
Creating the Form259
Importing Data Namespaces260
Creating a Connection260
Creating a Command263
Filling the DataGridView265
Conclusion269
Quiz270
Chapter 15Web Applications271
ASP.NET272
Internet Information Services272
Determining If IIS Is Already Installed273
Installing IIS274
Starting the IIS Admin Service274
Starting the Default Website276
URL278
Your Computer as the Web Server278
Virtual and Physical Paths279
Creating a Web Application280
ASP.NET Development Server281
ASP.NET Application IDE284
Creating a Database Web Application286
Adding a GridView Control286
Locating the Database on the Web Server288
Adding Code290
Conclusion292
Quiz292
Final Exam293
Answers299
Index315
From the B&N Reads Blog

Customer Reviews