Developing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual C# .NET MCAD/MCSD Self-Paced Training Kit

by
Edition: 2nd
Format: Paperback
Pub. Date: 2003-05-14
Publisher(s): Microsoft Press
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $73.49

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Get self-paced, from-the-source exam preparation and self-assessment for the skills measured by MCP Exams 70-306 and 70-316--core requirements for MCAD and MCSD certification. Features an enhanced testing tool, plus deeper coverage of Microsoft ADO.NET.

Author Biography

Matthew Stoecker is a Programmer/Writer with the Visual Basic .NET User Education team. He has written countless articles on .NET programming, and is the author of Developing Windows-Based Applications with Microsoft Visual Basic .NET and Microsoft Visual C# .NET.

Table of Contents

About This Book xv
Introduction to the .NET Framework
1(40)
About This Chapter
1(1)
Before You Begin
1(1)
The .NET Framework and the Common Language Runtime
2(4)
Overview of the .NET Framework
2(1)
Languages and the .NET Framework
2(1)
The Structure of a .NET Application
3(1)
Compilation and Execution of a .NET Application
4(1)
Lesson Summary
5(1)
The .NET Base Class Library
6(9)
Reference Types and Value Types
8(1)
Using .NET Framework Types in Your Application
9(3)
The Imports and Using Statements
12(1)
Referencing External Libraries
13(1)
Lesson Summary
14(1)
Using Classes and Structures
15(5)
Members
15(1)
Creating Classes
16(1)
Creating Structures
16(1)
Adding Members
16(1)
Nested Types
17(1)
Instantiating User-Defined Types
18(1)
Classes vs. Structures
19(1)
Lesson Summary
19(1)
Using Methods
20(7)
Adding Methods
20(1)
Calling Methods
21(1)
Method Variables
21(1)
Parameters
22(3)
Constructors and Destructors
25(1)
Lesson Summary
26(1)
Scope and Access Levels
27(6)
Member Access Modifiers
27(2)
Type Access Modifiers
29(1)
Access Modifiers for Nested Types
30(1)
Shared (static) Members
30(2)
Lesson Summary
32(1)
Garbage Collection
33(3)
Circular References
34(1)
Lesson Summary
35(1)
Classes and Garbage Collection
36(5)
Before You Begin
36(1)
Making the Demo Class
36(1)
Demonstrating Garbage Collection
37(2)
Review
39(2)
Creating the User Interface
41(68)
About This Chapter
41(1)
Before You Begin
41(1)
User Interface Design Principles
42(6)
Forms, Controls, and Menus
43(1)
Composition
44(1)
Simplicity
44(1)
Position of Controls
45(1)
Consistency
45(1)
Aesthetics
45(2)
Lesson Summary
47(1)
Using Forms
48(16)
Adding Forms to Your Project
48(1)
Visual Inheritance
49(1)
Setting the Start-Up Form
50(2)
Setting the Start-Up Location
52(1)
Changing the Appearance of Your Form
53(1)
BackColor, ForeColor, and Text Properties
54(1)
Font, Cursor, and BackGroundImage
54(1)
Opacity
54(1)
Using Form Methods
55(1)
Show and ShowDialog
56(1)
Activate
56(1)
Hide
57(1)
Close
57(1)
Using Form Events
57(2)
Event Arguments
59(1)
Form Lifetime Events
60(2)
Lesson Summary
62(2)
Using Controls and Components
64(14)
Working with Controls
64(2)
Setting the Control Tab Order
66(1)
Controls That Can Contain Other Controls
67(1)
Docking and Anchoring Controls
68(3)
Using the Controls Collection
71(1)
Adding Controls to the Toolbox
72(1)
Creating Event Handlers for Controls
73(1)
Interacting with the Mouse
74(2)
Using Extender Provider Components
76(1)
Lesson Summary
77(1)
Using Menus
78(9)
Creating Menus During Design
78(1)
Using the MainMenu Component
78(2)
Separating Menu Items
80(1)
Menu Access and Shortcut Keys
80(1)
Using Menu Item Events
81(1)
Creating Context Menus
82(1)
Modifying Menus at Run Time
82(1)
Enabling and Disabling Menu Commands
82(1)
Displaying Check Marks on Menu Items
83(1)
Displaying Radio Buttons on Menu Items
83(1)
Making Menu Items Invisible
83(1)
Cloning Menus
84(1)
Merging Menus at Run Time
84(1)
Adding Menu Items at Run Time
85(1)
Lesson Summary
86(1)
Validating User Input
87(12)
Field-Level Validation
87(1)
Using Events in Field-Level Validation
88(3)
Handling the Focus
91(2)
Form-Level Validation
93(2)
Providing User Feedback
95(3)
Lesson Summary
98(1)
The Virtual Doughnut Factory
99(10)
Before You Begin
99(1)
Creating the User Interface
99(4)
Adding a Menu
103(1)
Creating Validation Handlers
104(3)
Review
107(2)
Types and Members
109(62)
About This Chapter
109(1)
Before You Begin
109(1)
Using Data Types
110(10)
The .NET Data Types
110(3)
Converting Types
113(3)
Using Data Type Functionality
116(3)
Lesson Summary
119(1)
Using Constants, Enums, Arrays, and Collections
120(14)
Constants and Enumerations
120(4)
Arrays
124(2)
Multidimensional Arrays
126(2)
Collections
128(3)
Enumerating the Members of an Array or a Collection
131(2)
Lesson Summary
133(1)
Implementing Properties
134(10)
Implementing Properties
134(3)
Read-Only and Write-Only Properties
137(1)
Parameterized Properties
138(1)
Default Properties and Indexers
139(1)
Collection Properties
140(2)
Lesson Summary
142(2)
Implementing Delegates and Events
144(8)
Delegates
144(2)
Declaring and Raising Events
146(1)
Implementing Event Handlers
147(2)
Event Handlers That Handle Multiple Events
149(1)
Events with Multiple Handlers
149(1)
Removing Handlers at Run Time
150(1)
Lesson Summary
151(1)
Adding Components and Implementing Members
152(12)
Before You Begin
152(1)
Creating the DoughnutMachine Component
152(7)
Adding the DoughnutMachine to the User Interface
159(5)
Creating a Class
164(7)
Before You Begin
164(1)
Creating the Fraction Class
164(3)
Testing the Fraction Class
167(3)
Review
170(1)
Object-Oriented Programming and Polymorphism
171(46)
About This Chapter
171(1)
Before You Begin
171(1)
Introduction to Object-Oriented Programming
172(5)
Objects, Members, and Abstraction
172(2)
Encapsulation
174(1)
Polymorphism
174(1)
Lesson Summary
175(2)
Overloading Members
177(5)
Creating Overloading Methods
178(1)
Overloading Operators with Visual C#
179(2)
Lesson Summary
181(1)
Interface Polymorphism
182(8)
Defining Interfaces
182(2)
Polymorphism with Interfaces
184(1)
Implementing Interfaces
185(3)
Lesson Summary
188(2)
Inheritance Polymorphism
190(13)
Inheritance
190(2)
Inherited Members
192(7)
Abstract Classes and Members
199(3)
Lesson Summary
202(1)
Using Inherited Classes
203(14)
Before You Begin
203(1)
Creating the CompoundFraction Class
203(5)
Creating Overloaded Operators or Shared Methods
208(1)
Creating a Strongly Typed Collection Class
209(6)
Review
215(2)
Testing and Debugging Your Application
217(52)
About This Chapter
217(1)
Before You Begin
217(1)
Using the Debugging Tools
218(13)
Types of Errors
218(2)
Break Mode
220(3)
Setting Breakpoints
223(2)
Breakpoint Properties and Setting Breakpoint Conditions
225(1)
Using the Debugging Windows
226(4)
Lesson Summary
230(1)
Using the Debug and Trace Classes
231(10)
How Tracing Works
231(1)
Writing Trace and Debug Output
232(1)
The Listeners Collection
233(3)
Using Trace Switches
236(2)
Configuring Trace Switches
238(2)
Lesson Summary
240(1)
Creating a Unit Test Plan
241(5)
The Unit Test Plan
241(4)
Lesson Summary
245(1)
Handling and Throwing Exceptions
246(10)
How Exceptions Are Handled
246(1)
Creating an Exception Handler
247(4)
Throwing Exceptions
251(4)
Lesson Summary
255(1)
Debugging an Application
256(4)
Before You Begin
256(1)
Identifying Syntax Errors
256(1)
Identifying Run-Time Errors
257(1)
Identifying Logical Errors
258(2)
Creating, Throwing, and Handling Exceptions
260(4)
Before You Begin
260(1)
Creating the MyDivideByZeroException class
260(1)
Raising Exceptions
261(1)
Handling Exceptions
262(2)
Implementing Tracing
264(5)
Before You Begin
264(1)
Adding Trace Functionality
264(1)
Creating a .config File and Testing Tracing
265(2)
Review
267(2)
Data Access Using ADO.NET
269(90)
About This Chapter
269(1)
Before You Begin
269(1)
Overview of ADO.NET
270(5)
Disconnected Database Access
270(1)
ADO.NET Data Architecture
271(3)
Lesson Summary
274(1)
Overview of Structured Query Language
275(6)
The Select Statement
275(3)
The Delete Statement
278(1)
The Update Statement
278(1)
The Insert Into Statement
279(1)
Lesson Summary
279(2)
Accessing Data
281(25)
Connecting to a Database
281(3)
Using Data Commands
284(6)
Using DataReaders
290(7)
Creating and Configuring DataAdapters
297(3)
Retrieving Data Using DataAdapters
300(5)
Lesson Summary
305(1)
Using DataSet Objects and Updating Data
306(17)
Creating and Filling DataSet Objects Without a DataAdapter
306(5)
DataRelation Objects
311(1)
Constraints
312(3)
Editing and Updating Data
315(7)
Lesson Summary
322(1)
Binding, Viewing, and Filtering Data
323(14)
Data Binding
323(8)
Filtering and Sorting Data
331(5)
Lesson Summary
336(1)
Using XML in ADO.NET
337(8)
Retrieving XML from a SQL Server 2000 Database
337(1)
Using XML with DataSets
338(2)
Using the XmlDataDocument Class
340(3)
Lesson Summary
343(2)
Connecting with a Database
345(9)
Before You Begin
345(1)
Adding Data Access and Using the DataReader
345(2)
Retrieving and Updating Data Using DataAdapter Objects and a DataSet
347(2)
Creating a Typed DataSet Using the XML Designer
349(2)
Using the Data Form Wizard
351(3)
Connecting with an XML Data Store
354(5)
Before You Begin
354(1)
Accessing the XML Data Store
354(3)
Review
357(2)
Creating Controls Using the .NET Framework
359(42)
About This Chapter
359(1)
Before You Begin
359(1)
Using GDI+
360(14)
The System.Drawing Namespaces
360(1)
The Graphics Object
361(4)
Color, Brushes, and Pens
365(3)
Rendering Simple Shapes
368(1)
Rendering Text
369(1)
Rendering Complex Shapes
370(3)
Lesson Summary
373(1)
Authoring Controls
374(11)
Overview of Control Authoring
374(3)
Creating an Inherited Control
377(2)
Creating a User Control
379(3)
Creating a Custom Control
382(1)
Lesson Summary
383(2)
Common Tasks Using Controls
385(7)
Adding Your Control to the Toolbox
385(1)
Providing a Toolbox Bitmap for Your Control
386(1)
Debugging Your Control
387(1)
Managing Control Licensing
388(2)
Hosting Your Control in Internet Explorer
390(1)
Lesson Summary
391(1)
Creating a Custom Control
392(9)
Before You Begin
392(1)
Creating the Control
392(5)
Testing Your Control
397(2)
Review
399(2)
Advanced .NET Framework Topics
401(54)
About This Chapter
401(1)
Before You Begin
401(1)
Implementing Print Functionality
402(15)
The PrintDocument Component
402(3)
Printing Content
405(6)
Using PrintPreviewControl
411(1)
Configuring Printing
412(3)
Lesson Summary
415(2)
Accessing and Invoking Components
417(10)
Accessing .NET and COM Type Libraries
417(2)
Instantiating ActiveX Controls
419(1)
Accessing a Web Service
419(5)
Accessing the Windows API
424(1)
Lesson Summary
425(2)
Implementing Accessibility
427(4)
Accessibility Design
427(1)
Accessibility and the Certified for Windows Program
428(1)
Accessibility Properties of Windows Forms Controls
429(1)
Lesson Summary
430(1)
Implementing Help in Your Application
431(3)
The Help Class
431(1)
The HelpProvider Component
432(1)
Lesson Summary
433(1)
Globalization and Localization
434(11)
Globalization and Localization
434(5)
Culture-Specific Formatting
439(4)
Lesson Summary
443(2)
Creating a Localized Form with Print Support
445(10)
Before You Begin
445(1)
Creating the Form
445(3)
Localizing the Form
448(3)
Adding Print Support
451(3)
Review
454(1)
Assemblies, Configuration, and Security
455(46)
About This Chapter
455(1)
Before You Begin
455(1)
Assemblies and Resources
456(13)
Assemblies
456(2)
Resources and Resource Assemblies
458(7)
Shared Assemblies
465(2)
Lesson Summary
467(2)
Configuring and Optimizing Your Application
469(9)
Creating the Configuration File
469(2)
Configuring Your Application Using Dynamic Properties
471(4)
Optimizing Your Application's Performance
475(2)
Lesson Summary
477(1)
Securing Your Application
478(17)
Permissions
479(1)
Configuring Role-Based Authorization
479(5)
Configuring Code Access Security
484(6)
Using Exception Handling with Imperative Security
490(1)
Configuring Network and Machine Code Access Security Policy
491(3)
Lesson Summary
494(1)
Configuring and Securing an Application
495(6)
Before You Begin
495(1)
Adding the Configuration File
495(2)
Securing Your Application
497(3)
Review
500(1)
Deploying Your Application
501(34)
About This Chapter
501(1)
Before You Begin
501(1)
Planning the Deployment of Your Project
502(13)
XCOPY Deployment
502(1)
Creating Setup Projects
503(4)
Configuring Build Properties of Your Setup Project
507(4)
Building, Distributing, and Deploying a Setup Project
511(3)
Lesson Summary
514(1)
Configuring Your Setup Project
515(16)
Setting the Setup Project Properties
515(2)
The Installation Editors
517(12)
Installing a Native Assembly Image
529(1)
Verifying Installed Assembly Security Policies
529(1)
Lesson Summary
530(1)
Creating an Installer Application
531(4)
Before You Begin
531(1)
Creating the Setup Project
531(1)
Configuring Your Application
532(1)
Installing Your Application
532(2)
Review
534(1)
Appendix A Questions and Answers 535(14)
Glossary 549(8)
Index 557

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.