Muutke küpsiste eelistusi

Programming in Visual C# 2008 3rd edition [Pehme köide]

  • Formaat: Paperback / softback, 704 pages, kõrgus x laius x paksus: 272x216x25 mm, kaal: 1374 g
  • Ilmumisaeg: 16-Feb-2009
  • Kirjastus: McGraw-Hill Professional
  • ISBN-10: 0073517216
  • ISBN-13: 9780073517216
  • Pehme köide
  • Hind: 163,89 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 704 pages, kõrgus x laius x paksus: 272x216x25 mm, kaal: 1374 g
  • Ilmumisaeg: 16-Feb-2009
  • Kirjastus: McGraw-Hill Professional
  • ISBN-10: 0073517216
  • ISBN-13: 9780073517216
Be sharp. Learn C#. Programming in Visual C# 2008 gives you a fresh and easily accessible approach to learning programming concepts using Visual C# for 2008, one of the most pervasive programming languages in the job market today. Best-selling authors Bradley and Millspaugh apply their proven pedagogy, incorporating basic concepts of programming, problem solving, and programming logic and design techniques to teach a mastery of Visual C# at an.introductory level. A hands-on approach, Programming in Visual C# 2008 lets you begin programming in the very first chapter. Thought-provoking feedback questions and in-chapter tips are dispersed throughout so students can reflect on a topic introduced and evaluate their understanding of the details. Comprehensive Hands-On Programming Examples found in each chapter reinforce the programming logic and techniques learned in the chapter...
Introduction to Programming and Visual C# 2008
1(66)
Writing Windows Applications with Visual C#
2(1)
The Windows Graphical User Interface
3(1)
Programming Languages---Procedural, Event Driven, and Object Oriented
3(3)
The Object Model
4(1)
Microsoft's Visual Studio
5(1)
Writing C# Programs
6(2)
The Three-Step Process
6(1)
C# Application Files
7(1)
The Visual Studio Environment
8(7)
Default Environment Settings
8(1)
The IDE Initial Screen
9(1)
The New Project Dialog
9(2)
The IDE Main Window
11(1)
The Toolbars
11(1)
The Document Window
12(1)
The Form Designer
12(1)
The Solution Explorer Window
13(1)
The Properties Window
13(1)
The Toolbox
13(1)
Help
14(1)
Design Time, Run Time, and Debug Time
14(1)
Writing Your First C# Project
15(28)
Set Up Your Workspace
15(3)
Plan the Project
18(1)
Define the User Interface
19(2)
Set Properties
21(8)
Write Code
29(1)
C# Code Statements
30(2)
Code the Event-Handling Methods for Hello World
32(3)
Run the Project
35(1)
Save Your Work
36(1)
Open the Project
36(1)
Modify the Project
37(5)
Print the Code
42(1)
A Sample Printout
43(2)
Automatically Generated Code
44(1)
Finding and Fixing Errors
45(8)
Syntax Errors
45(1)
Run-Time Errors
46(1)
Logic Errors
47(1)
Project Debugging
48(1)
Modifying an Event Handler
48(4)
Naming Rules and Conventions for Objects
52(1)
Visual Studio Help
53(4)
Installing and Running MSDN
53(1)
Viewing Help Topics
54(2)
Context-Sensitive Help
56(1)
Managing Windows
56(1)
Your Hands-On Programming Example
57(10)
User Interface Design
67(40)
Introducing More Controls
68(10)
Text Boxes
68(2)
Masked Text Boxes
70(1)
Rich Text Boxes
70(1)
Displaying Text on Multiple Lines
71(1)
Group Boxes
72(1)
Check Boxes
73(1)
Radio Buttons
73(1)
Picture Boxes
74(2)
Using Smart Tags
76(1)
Using Images for Forms and Controls
77(1)
Setting a Border and Style
77(1)
Drawing a Line
78(1)
Working with Multiple Controls
78(2)
Selecting Multiple Controls
78(1)
Deselecting a Group of Controls
79(1)
Moving Controls as a Group
79(1)
Setting Properties for Multiple Controls
80(1)
Aligning Controls
80(1)
Designing Your Applications for User Convenience
80(7)
Designing the User Interface
81(1)
Defining Keyboard Access Keys
81(1)
Setting the Accept and Cancel Buttons
82(1)
Setting the Tab Order for Controls
83(1)
Setting the Form's Location on the Screen
84(1)
Creating ToolTips
85(2)
Coding for the Controls
87(7)
Clearing Text Boxes and Labels
87(1)
Resetting the Focus
88(1)
Setting the Checked Property of Radio Buttons and Check Boxes
88(1)
Setting Visibility at Run Time
88(1)
Disabling Controls
89(1)
Setting Properties Based on User Actions
89(1)
Changing the Color of Text
90(2)
Concatenating Text
92(1)
Downloading and Using the Line and Shape Controls
93(1)
Printing a Form
94(1)
Your Hands-On Programming Example
95(5)
Good Programming Habits
100(7)
Variables, Constants, and Calculations
107(50)
Data---Variables and Constants
108(11)
Data Types
109(1)
Naming Rules
110(1)
Naming Conventions
110(1)
Constants: Named and Intrinsic
111(3)
Declaring Variables
114(2)
Scope and Lifetime of Variables
116(3)
Calculations
119(9)
Converting Strings to a Numeric Data Type
119(2)
Arithmetic Operations
121(1)
Order of Operations
122(1)
Using Calculations in Code
123(2)
Converting between Numeric Data Types
125(1)
Performing Calculations with Unlike Data Types
126(1)
Rounding Numbers
127(1)
Formatting Data for Display
128(3)
Using Format Specifier Codes
128(2)
Choosing the Controls for Program Output
130(1)
A Calculation Programming Example
131(4)
Planning the Project
131(3)
The Project Coding Solution
134(1)
Handling Exceptions
135(3)
try/catch Blocks
136(2)
Displaying Messages in Message Boxes
138(5)
The TextMessage String
139(1)
The Titlebar Text
139(1)
MessageBoxButtons
140(1)
MessageBoxIcon
140(1)
Using Overloaded Methods
140(1)
Testing Multiple Fields
141(2)
Counting and Accumulating Sums
143(1)
Summing Numbers
143(1)
Counting
144(1)
Calculating an Average
144(1)
Your Hands-On Programming Example
144(13)
Decisions and Conditions
157(60)
if Statements
158(2)
Charting if Statements
160(1)
Boolean Expressions
160(8)
Comparing Numeric Variables and Constants
161(1)
Comparing Character Data
162(1)
Comparing Strings
163(2)
Testing for True or Fake
165(1)
Comparing Uppercase and Lowercase Characters
165(1)
Compound Boolean Expressions
166(1)
Short-Circuit Operations
167(1)
Nested if Statements
168(4)
Coding an else if
170(2)
Using if Statements with Radio Buttons and Check Boxes
172(4)
A ``Simple Sample''
173(1)
Checking the State of a Radio Button Group
174(1)
Checking the State of Multiple Check Boxes
175(1)
Enhancing Message Boxes
176(3)
Displaying the Message String
176(1)
Displaying Multiple Buttons
177(2)
Input Validation
179(3)
Checking for a Range of Values
180(1)
Checking for a Required Field
180(1)
Performing Multiple Validations
181(1)
The switch Statement
182(3)
Sharing an Event Handler
185(3)
Calling Event Handlers
188(1)
Your Hands-On Programming Example
189(7)
Debugging C# Projects
196(6)
Writing to the Output Window
197(1)
Pausing Execution with the Break All Button
198(1)
Forcing a Break
198(1)
Checking the Current Values of Expressions
199(1)
Stepping through Code
200(1)
The Locals Window
201(1)
The Autos Window
202(1)
Debugging Step-by-Step Tutorial
202(15)
Menus, Common Dialog Boxes, and Methods
217(42)
Menus
218(9)
Defining Menus
218(5)
Creating a Menu---Step-by-Step
223(1)
Coding for Menu Items
224(3)
Standards for Windows Menus
227(1)
Common Dialog Boxes
227(4)
Displaying a Windows Common Dialog Box
228(1)
Using the Information from the Dialog Box
228(1)
Using the Color Dialog Box
228(1)
Using the Font Dialog Box
229(1)
Setting Initial Values
230(1)
Creating Context Menus
231(3)
Creating a Context Menu---Step-by-Step
231(2)
Sharing Methods
233(1)
Writing General Methods
234(9)
Creating a New Method
234(1)
Passing Arguments to Methods
235(1)
Writing Methods That Return Values
236(2)
Methods with Multiple Parameters
238(1)
Reference and Output Parameters
239(1)
Breaking Calculations into Smaller Units
240(3)
Basing a New Project on an Existing Project
243(1)
Your Hands-On Programming Example
244(15)
Multiform Projects
259(34)
Using Multiple Forms
260(3)
Creating New Forms
260(2)
Adding and Removing Forms
262(1)
An About Box
263(3)
Using the About Box Template
264(1)
Setting Assembly Information
264(2)
Displaying an About Form
266(1)
Using the Methods and Events of Forms
266(3)
Showing a Form
266(1)
Hiding or Closing a Form
267(1)
Responding to Form Events
268(1)
The Sequence of Form Events
268(1)
Writing Event Handlers for Selected Events
269(1)
Variables and Constants in Multiform Projects
269(5)
Creating Properties in a Class
270(2)
Applying the Properties to Multiple Forms
272(1)
Passing Summary Values among Forms
273(1)
A Splash Screen
274(2)
Creating a Splash Screen
274(1)
Controlling the Time a Splash Form Displays
275(1)
Making the Splash Form Display First
275(1)
Running Your Program Outside the IDE
276(1)
Your Hands-On Programming Example
277(16)
Lists, Loops, and Printing
293(38)
List Boxes and Combo Boxes
294(8)
The Items Collection
295(1)
Filling a List
295(3)
The SelectedIndex Property
298(1)
The Items.Count Property
298(1)
Referencing the Items Collection
299(1)
Removing an Item from a List
299(1)
Clearing a List
300(1)
List Box and Combo Box Events
301(1)
The while and do/while Loops
302(3)
The bool Data Type Revisited
304(1)
Using a while Loop with a List Box
304(1)
for Loops
305(4)
Negative Increment or Counting Backward
307(1)
Conditions Satisfied before Entry
307(1)
Endless Loops
308(1)
Exiting for Loops
308(1)
Skipping to the Next Iteration of a Loop
308(1)
Making Entries Appear Selected
309(1)
Selecting the Entry in a Text Box
309(1)
Sending Information to the Printer
310(8)
The PrintDocument Component
310(4)
Printing Summary
314(1)
Printing the Contents of a List Box
314(1)
Printing the Selected Item from a List
315(1)
Aligning Decimal Columns
315(1)
Displaying a Print Preview
316(1)
Printing Multiple Pages
317(1)
Your Hands-On Programming Example
318(13)
Arrays
331(38)
Single-Dimension Arrays
332(2)
Subscripts
332(2)
Valid Subscripts
334(1)
foreach Loops
334(1)
Structures
335(3)
Declaring Variables Based on a Structure
336(1)
Accessing the Elements in a Structure Variable
336(1)
Including an Array in a Structure
337(1)
Using Array Elements for Accumulators
338(2)
Adding to the Correct Total
338(1)
Debugging Array Programs
339(1)
Table Lookup
340(3)
Coding a Table Lookup
343(1)
Using List Boxes with Arrays
343(2)
Multidimensional Arrays
345(6)
Initializing Two-Dimensional Arrays
346(1)
Printing a Two-Dimensional Table
346(1)
Summing a Two-Dimensional Table
347(1)
Lookup Operation for Two-Dimensional Tables
348(3)
Your Hands-On Programming Example
351(18)
Web Applications
369(42)
C# and Web Programming
370(2)
Client/Server Web Applications
370(2)
Types of Web Sites
372(1)
File System Web Sites
372(1)
IIs Web Sites
372(1)
Remote Sites and FTP Sites
373(1)
Creating a Web Site
373(7)
Web Page Files
374(1)
Web Forms in the Visual Studio IDE
374(1)
Creating Your First Web Form---Step-by-Step
374(3)
Viewing the HTML Code
377(1)
Controls
377(1)
Event Handling
378(1)
Files
379(1)
Debugging
379(1)
Testing in Other Browsers
380(1)
Laying Out Web Forms
380(10)
Using Tables for Layout
381(2)
Absolute Positioning
383(1)
Including Images on Web Pages
383(3)
Cascading Style Sheets
386(4)
Navigating Web Pages
390(3)
Using Hyperlinks
390(1)
Adding a Second Web Page
391(2)
Transferring Pages in Code
393(1)
Using the Validator Controls
393(1)
Maintaining State
394(3)
Retaining the Contents of Controls
394(1)
Retaining the Values of Variables
395(1)
Checking for Postback
395(1)
Passing Values to a Second Page
396(1)
Ajax
397(1)
Managing Web Projects
398(1)
Using the Copy Web Site Tool
398(1)
Some Web Acronyms
399(1)
Your Hands-On Programming Example
399(12)
Database Applications
411(40)
Databases
412(2)
C# and Databases
412(1)
Database Terminology
412(1)
XML Data
413(1)
Using ADO.NET and C#
414(3)
Data Access in Visual Studio
415(1)
Binding Sources
416(1)
Table Adapters
416(1)
Datasets
416(1)
Creating a Database Application
417(6)
A Windows Database Application---Step-by-Step
417(5)
The Grid's Smart Tag
422(1)
The Database Schema File
423(1)
Binding Individual Data Fields
423(4)
The Data Sources Window
424(1)
Database Details Program---Step-by-Step
425(2)
Selecting Records from a List
427(6)
Converting to Combo Box Selection---Step-by-Step
427(2)
Selecting Fields from the Table
429(1)
Sorting the List Data
429(2)
Choosing the Control Type for Fields
431(2)
Selecting Records Using Web Forms
433(7)
Security in Web Database Applications
433(1)
Creating the Web Selection Application---Step-by-Step
434(5)
Make the Project Portable
439(1)
LINQ
440(6)
Setting up a Query
440(1)
Creating a LINQ Project---Step-by-Step
441(2)
LINQ to SQL
443(3)
Your Hands-On Programming Example
446(5)
Data Files
451(30)
Data Files
452(1)
File I/O
452(1)
Simple File I/O
452(4)
Writing and Reading Text Files
452(4)
.NET File Handling
456(7)
File Handling Using Streams
457(1)
Writing Data in a File Using a StreamWriter
457(3)
Reading Data from a File Using a StreamReader
460(3)
Using the File Common Dialog Box
463(5)
OpenFileDialog Component Properties
463(1)
Displaying the Open File Dialog Box
464(2)
The Open and Write File Program
466(2)
Saving the Contents of a List Box
468(3)
Loading the List Box
468(1)
Checking for Existence of the File
469(1)
Saving the File
469(1)
Querying the User to Save
470(1)
The Form_FormClosing Event Handler
470(1)
XML Files
471(1)
Your Hands-On Programming Example
471(10)
OOP: Creating Object-Oriented Programs
481(54)
Object-Oriented Programming
482(4)
Objects
482(1)
Object-Oriented Terminology
483(2)
Reusable Classes
485(1)
Multitier Applications
485(1)
Classes
486(8)
Designing Your Own Class
486(1)
Creating Properties in a Class
487(1)
Class Methods
487(1)
Constructors and Destructors
487(1)
Creating a New Class---Step-by-Step
488(5)
Property Methods with Mixed Access Levels
493(1)
Creating a New Object Using a Class
494(6)
Defining and Using a New Object---Step-by-Step
494(2)
Instance Variables versus Static Variables
496(2)
Adding Static Properties to the Step-by-Step Exercise
498(2)
Destructors
500(1)
Garbage Collection
500(1)
Inheritance
500(11)
Inheriting Properties and Methods
501(1)
Overriding Methods
501(1)
Accessing Properties
502(1)
Creating a Derived Class Based on ClothingSale
502(1)
Adding Inheritance to the Step-by-Step Exercise
503(3)
Creating a Base Class Strictly for Inheritance
506(1)
Inheriting Form Classes
507(4)
Setting the Startup Form
511(1)
Managing Multiclass Projects
511(1)
Adding an Existing Class File to a Project
511(1)
Using the Object Browser
511(3)
Examining C# Classes
512(1)
Examining Your Own Classes
512(2)
Your Hands-On Programming Example
514(21)
Graphics, Animation, Sound, and Drag-and-Drop
535(36)
Graphics in Windows and the Web
536(1)
The Graphics Environment
536(6)
Steps for Drawing Graphics
536(1)
The Paint Event Handler
537(1)
Pen and Brush Objects
537(2)
The Coordinate System
539(1)
Graphics Methods
540(2)
Random Numbers
542(2)
Simple Animation
544(3)
Displaying an Animated Graphic
544(1)
Controlling Pictures at Run Time
545(2)
Moving a Picture
547(1)
The Timer Component
547(2)
The Scroll Bar Controls
549(3)
Scroll Bar Properties
550(1)
Scroll Bar Events
551(1)
A Programming Example
551(1)
Playing Sounds
552(3)
Adding Sound Files to the Resources for a Project
553(1)
A Sound-Playing Program
553(2)
Playing Videos
555(2)
Using the Windows Media Player Control
556(1)
Drag-and-Drop Programming
557(5)
The Source Object
557(1)
The Target Object
558(1)
The Drag-and-Drop Program
559(2)
Dragging and Dropping an Image
561(1)
The DragDropImage Program
561(1)
Your Hands-On Programming Example
562(9)
Additional Topics in C#
571(42)
Advanced Validation Techniques
572(8)
Using ErrorProvider Components
572(3)
The MaxLength and CharacterCasing Properties
575(1)
Field-Level Validation
575(1)
Using the Validating Event and CausesValidation Property
575(4)
Capturing Keystrokes from the User
579(1)
Using the Masked Text Box for Validation
580(1)
Code Snippets and Samples
580(1)
Code Snippets
580(1)
Sample Projects
580(1)
Multiple Document Interface
581(4)
Creating an MDI Project
582(1)
Adding a Window Menu
583(2)
Toolbars and Status Bars
585(2)
Toolbars
585(1)
Status Bars
586(1)
Some Helpful Date Controls
587(3)
The Calendar Controls
587(3)
Displaying Web Pages on a Windows Form
590(3)
The WebBrowser Control
590(1)
A WebBrowser Program
591(2)
Checking for the Enter Key
593(1)
XML Data Files
593(9)
Nodes, Elements, and Attributes
594(1)
Writing and Reading an XML File
595(2)
C# Tools for Reading XML Files
597(5)
Windows Presentation Foundation (WPF)
602(7)
WPF Interoperability
603(1)
Adding a WPF Control to a Window Form---Step-by-Step
604(1)
Writing a WPF Application
605(2)
Creating a WPF Hello World Application---Step-by-Step
607(2)
The Role of Expression Blend
609(4)
Answers to Feedback Questions
613(14)
Methods for Working with Dates, Mathematics, and String Operations
627(8)
Working with Dates
628(2)
The DateTime Structure
628(1)
Retrieving the System Date and Time
629(1)
Date Variables
629(1)
Converting Values to a Date Format
630(1)
Mathematical Methods
630(1)
Working with Strings
631(3)
Methods for Conversion between Data Types
634(1)
Tips and Shortcuts for Mastering the Environment
635(18)
Set Up the Screen for Your Convenience
636(5)
Close or Hide Extra Windows
636(3)
Use the Full Screen
639(1)
Modify the Screen Layout
639(1)
Split the Screen Vertically
640(1)
Reset the IDE Layout
640(1)
Set Options for Your Work
640(1)
Use Shortcuts in the Form Designer
641(1)
Use the Layout Toolbar
641(1)
Nudge Controls into Place
641(1)
Use Snap Lines to Help Align Controls
641(1)
Copy Controls Quickly
642(1)
Use Shortcuts in the Editor
642(4)
Comment and Uncomment Selected Lines
643(1)
Use the Text Editor Toolbar
643(1)
Use Keyboard Shortcuts When Editing Code
644(1)
Split the Editor Window
644(1)
Use Drag-and-Drop Editing
645(1)
Use the Task List
645(1)
Drag Commonly Used Code to the Toolbox
645(1)
Rename Variables and Objects
646(1)
Reformat the File
646(1)
Use Context-Sensitive Help
646(1)
Use the Debugging Tools
646(3)
The Debug Toolbar and Menu
646(1)
Set Breakpoints
647(1)
View the Contents of Expressions
647(1)
Single-Step through Code
648(1)
Write to the Output Window
648(1)
Copy and Move Projects
649(1)
Copy and Move a Windows Project
649(1)
Copy and Move a Web Project
649(1)
Rename and Remove Event Handlers
649(2)
Rename an Event Handler
650(1)
Remove an Event Handler
650(1)
How C# Sets Up Event Handlers
650(1)
Deploy Applications
651(2)
Security
653(4)
Authentication and Authorization
654(1)
Authorization and Impersonation
654(1)
Writing Secure Code
655(1)
SQL Injection
655(1)
Error Messages
655(1)
Code Access Security
655(2)
Glossary 657(11)
Index 668
Julia Case Bradley is professor emeritus at Mt. San Antonio College. From 1978 until her retirement, she taught courses in introductory and advanced Visual Basic, Access programming, and Microsoft Office in the department of Computer Information Systems. She began writing BASIC textbooks in 1984 using MS-BASIC (GW-BASIC), and has authored or co-authored texts in Macintosh Basic, QuickBasic, QBasic, Visual Basic, the Internet, and desktop publishing using PageMaker, Ventura Publisher, and Publish It.





Anita Millspaugh teaches programming courses in Visual Basic, C++, and Java at Mt. San Antonio College and has served as chair of the department for 8 years. She received her MBA from California State Polytechnic University, with a bachelor's degree in Computer Information Systems. Anita has also led Great Teacher's Conferences for Mt. Sac and for California Vocational Faculty.