Visual C# .Net : A Guide for Vb6 Developers

Visual C# .Net : A Guide for Vb6 Developers

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 560 p.
  • 言語 ENG
  • 商品コード 9781861007179
  • DDC分類 005.7565

Table of Contents

Introduction                                       1  (1)
Who is this Book For? 1 (1)
What is in this Book? 2 (1)
What you Need to use this Book 3 (1)
Conventions 3 (1)
Customer Support 4 (5)
NET. C#, and Visual Studio. NET 9 (24)
What's Wrong with VB6? 9 (1)
The .NET Framework 10 (5)
The Common Language Runtime 10 (1)
Intermediate Language and JIT Compilation 11 (1)
Metadata and Assemblies 12 (1)
Different Languages 13 (1)
The Framework Class Library 13 (2)
The C# language 15 (1)
C# vs. Visual Basic 6 15 (4)
C# vs. Visual Basic.NET 19 (1)
Visual Studio .NET 20 (1)
Creating a New Project 21 (1)
The Solution Explorer and Class View 22 (1)
The Visual Editor 23 (2)
The Code Editor 25 (1)
The Task List Window 26 (1)
The Server Explorer 27 (3)
Summary 30 (3)
A Windows Application with Visual Studio .NET 33 (32)
and C#
The SuperMind .NET Game 33 (29)
Creating a New Solution in Visual Studio 34 (3)
.NET
Designing Main Form's Interface 37 (2)
Adding Controls 39 (6)
Code Generated by Adding Controls 45 (5)
Writing the Code 50 (1)
Starting a New Game 51 (1)
Generating the Random Sequence 52 (1)
Processing the Player's Guess 53 (4)
Handling the btnTry.Click Event 57 (1)
Handling the txtPlayerSeq.KeyPress Event 57 (2)
Handling Menu Events 59 (3)
Summary 62 (3)
The C# Language 65 (64)
The SweepCSharp Game 66 (1)
Data Types 67 (4)
Predefined Value Types 68 (1)
Integer Types 68 (1)
Floating-Point Types 69 (1)
Boolean Type 69 (1)
Character Types 70 (1)
Predefined Reference Types 70 (1)
Object Type 70 (1)
String Type 71 (1)
Declaring Variables 71 (7)
Assigning Values 72 (2)
Initializing Variables 74 (1)
Variable Scope 75 (1)
C# Operators 76 (1)
Operator Shortcuts 77 (1)
Arrays 78 (3)
Flow Control 81 (15)
Conditional Control 81 (1)
The if Statement 82 (2)
The Ternary Operator 84 (1)
The Switch Statement 84 (2)
Loops 86 (1)
The for Loop 87 (3)
The while Loop 90 (1)
The do...while Loop 91 (2)
The foreach Loop 93 (2)
Jumping out of Loops 95 (1)
SweepCSharp - Drawing the Controls 96 (2)
Methods 98 (4)
Declaring Methods 98 (1)
Invoking Methods 99 (3)
Type Safety 102(4)
Implicit Conversions 103(1)
Explicit Conversions 104(2)
Finishing SweepCSharp 106(5)
Structured Exception Handling 111(6)
Finally 113(1)
Throwing Exceptions 113(1)
Exception Handling Example 113(4)
String Manipulation 117(8)
String Handling Example 118(6)
The String Builder 124(1)
ArrayLists 125(1)
Summary 126(3)
Object-Oriented Programming: Part I 129(38)
Objects and Classes 130(12)
Introducing the Person Class 130(2)
Adding a Class 132(1)
Coding the Person Class 133(1)
Using the Person Class 133(2)
Adding Behavior to the Person Class 135(1)
Access Modifiers 136(2)
Properties 138(1)
Adding Properties to the Person Class 138(1)
Updating the Executable 139(2)
Read-only and Write-only Properties 141(1)
Principles of Object-Oriented Programming 142(10)
Encapsulation 143(2)
Inheritance 145(5)
Polymorphism 150(2)
Method Overloading 152(3)
Simulating Optional Parameters in C# 154(1)
Constructors 155(9)
When Exactly Is the Constructor Called? 157(1)
Parameterized Constructors 157(3)
Overloaded Constructors 160(1)
Calling a Constructor from Another 161(1)
Constructor
Sequence of Executing Constructors with 162(1)
Derived Classes
Choosing which Constructor of the Base 163(1)
Class to Call
Summary 164(3)
Object-Oriented Programming: Part II 167(78)
Base Classes and Derived Classes 168(10)
Another Example of Polymorphism 168(2)
Method and Property Hiding 170(1)
Method and Property Overriding 171(2)
Even More Polymorphism 173(1)
Polymorphism and Type Casting 174(3)
Accessing Members of the Base Class 177(1)
Abstract Classes, Methods, and Properties 178(8)
Abstract Classes 179(1)
Abstract Methods and Properties 180(2)
Abstract in Action 182(4)
Sealed Classes, Methods, and Properties 186(1)
Interfaces and Interface Inheritance 187(9)
Interfaces 187(1)
Interface Inheritance 187(2)
Applying the Concepts 189(7)
Static Class Members 196(7)
Adding Static Members to the Person Class 197(3)
Accessing Static Members from Instance 200(2)
Methods
Static Constructors 202(1)
Destructors 203(2)
Delegates and Events 205(13)
Delegates 206(5)
Multicast Delegates 211(1)
Events 212(6)
Constants and Read-Only Fields 218(4)
Constants 218(2)
Read-Only Fields 220(2)
Value Types and Reference Types 222(3)
Copying Values and References 223(2)
Passing Parameters by Value and by Reference 225(4)
Passing a Value Type by Value 225(1)
Passing a Value Type by Reference 226(1)
Passing a Reference Type by Value 227(1)
Passing a Reference Type by Reference 228(1)
Structs 229(2)
Enums 231(2)
Objects in the .NET Framework 233(9)
System.Object Members 234(6)
Boxing and Unboxing 240(2)
Summary 242(3)
Building a Windows Application 245(32)
The New Client 245(2)
The Problem 246(1)
Building the User Interface 247(9)
The Standard Controls 247(2)
Adding the Controls 249(2)
Adding Menus 251(1)
Adding Dialogs 252(3)
Adding Message Boxes 255(1)
Displaying Files in the TreeView Control 256(8)
Handling Directories and Files 256(1)
Handling Directories - The DirectoryInfo 257(1)
Class
Handling Files - The FileInfo Class 257(1)
Populating the TreeView with File 258(6)
Information
Building the E-mail Pane 264(11)
Sending E-mail 266(1)
Using the DateTimePicker Control 266(2)
Delivering the Mail 268(6)
Final Test Run 274(1)
Summary 275(2)
Working with ActiveX Controls 277(30)
Why Use ActiveX Controls in .NET? 278(1)
Windows Forms Controls vs. ActiveX 278(1)
Controls
Hosting ActiveX Controls in .NET 279(24)
The Microsoft Web Browser Control 279(1)
Adding the Control to the Form 280(2)
Controlling the Display 282(1)
Displaying Web Pages in the Web Browser 283(2)
Control
Writing Data to Files 285(2)
Using the MAPI Controls 287(1)
Adding the MAPI Controls to the Project 287(1)
Reading Our Client's Inbox with the MAPI 288(3)
Controls
Wiring Up the MAPI Controls 291(1)
Methods and Properties of the MAPI Control 291(1)
Working Directly with the MAPI Controls 292(1)
Navigating the Inbox 293(2)
Navigating Through Sets of Messages 295(8)
Summary 303(4)
Creating Custom Controls 307(24)
User Controls in the .NET Framework 308(1)
Building a Labeled TextBox Control 308(8)
Adding a Windows Control Library Project 309(1)
Exposing our Control's Properties 310(2)
Testing the Labeled TextBox Control 312(3)
Overriding the Text Property 315(1)
Creating a Custom Filter Control 316(7)
Building CustomFilter1 317(1)
CustomFilter1 Properties 318(1)
The RowFilter Syntax 319(2)
Testing CustomFilter1 321(2)
Visual Inheritance 323(6)
Summary 329(2)
Displaying Data in Windows Forms 331(28)
Restoring the Modified pubs Database 332(1)
Using the Data Adapter Configuration Wizard 333(5)
Generating the DataSet 338(3)
Data Binding to a DataGrid 341(8)
Formatting the DataGrid 342(1)
Filtering Data with the DataView 343(5)
Persisting Changes to the Database 348(1)
Data Binding to Single Valued Controls 349(6)
Updating Records 353(1)
Inserting New Records 353(2)
Deleting Records 355(1)
Data Binding to a ListBox 355(2)
Summary 357(2)
Class Libraries 359(16)
N-Tier Applications 359(3)
Client-Server 360(1)
Fat and Thin Clients 360(1)
The N-Tier Architecture 361(1)
The Data-Access Tier 362(1)
The Business-Logic Tier 362(1)
The Presentation Tier 362(1)
Creating a Class Library in Visual Studio 362(6)
.NET
Creating a Class Library with C# Standard 367(1)
Edition
Consuming Class Libraries 368(5)
Summary 373(2)
Integrating VB6 and C# 375(40)
How COM Works 375(3)
IUnknown and IDispatch 377(1)
Late Binding and IDispatch 377(1)
Dual Interfaces 378(1)
The Registry 378(1)
How .NET Works 378(3)
.NET Assemblies 379(1)
Shared and Private Assemblies 379(2)
Using VB Code from C# 381(7)
The VB6 Code 381(1)
DataUtility Module 382(1)
Employee Class 383(2)
Employees Collection 385(1)
EmployeeManager Class 386(2)
Examining the Component with OLEView 388(8)
Building a C# Client 391(1)
Adding References to COM Components 391(1)
Runtime Callable Wrappers 392(1)
Viewing the RCW with ILDASM 393(1)
The Client Code 394(2)
Using C# Code from VB6 396(17)
The C# Class Library 396(8)
Signing the Assembly 404(2)
Viewing the Assembly with ILDASM 406(3)
Registering .NET Assemblies 409(2)
Building the VB6 Client 411(2)
Summary 413(2)
Data Access with ADO.NET 415(26)
Data Provider 416(14)
Data Adapter Basics 417(1)
Connections 418(1)
Connection Strings 419(1)
Managing Connections 419(2)
Commands 421(1)
Parameters 422(2)
Command Builders 424(1)
Calling Stored Procedures 424(2)
Executing Commands 426(1)
Using Readers 427(2)
Returning Readers from Methods 429(1)
When Not to Use Data Readers 430(1)
DataSet 430(8)
Tables in a DataSet 431(1)
Rows and Columns 431(1)
Data Relations and Hierarchical Data 432(2)
Establishing Relationships Between Data 434(2)
Tables
Working with Relations to Display Data 436(2)
Designing ADO.NET Applications 438(1)
Summary 438(3)
Advanced ADO.NET 441(50)
Concurrency Issues 441(9)
The RowStateFilter Property 443(3)
Accepting and Rejecting Changes 446(1)
Writing Back to the Database 446(4)
Using a Timestamp 450(1)
XML and ADO.NET 450(5)
XSLT Transformations 453(2)
The knowledgeBase Project 455(34)
Scope and Goals 456(1)
SQL Server Database 457(1)
Linking Tables 458(1)
Data Tier 459(1)
Data-Tier KBConnection Class 459(2)
Data-Tier KBDataSubjects Class 461(4)
Data-Tier KBDataAssets Class 465(4)
Business Tier 469(1)
Business-Tier Asset and Subject Classes 470(3)
Business-Tier KBBusSubjects Class 473(2)
Business-Tier KBBusAssets Class 475(3)
Client Tier 478(2)
Form Initialization 480(1)
Data-Binding to the ComboBoxes 481(1)
IstAvailable and IstChosen ListBoxes 482(4)
Inserting, Updating, and Deleting Assets 486(2)
Handling the SelectedIndexChanged Event 488(1)
Summary 489(2)
Deploying Windows Applications 491(22)
Deploying .NET Windows Applications 491(5)
Project Configuration and the .NET 492(2)
Framework
XCOPY Deployment 494(1)
Types of Project 495(1)
Setup Wizard Deployment 496(15)
Project Properties 499(1)
Configuring the Target Machine 499(1)
File System View 500(3)
Registry View 503(1)
User Interface View 503(3)
Launch Conditions 506(1)
Build the Setup Project 507(1)
Run the Setup Wizard 508(1)
Self-Repair 509(1)
Uninstall 510(1)
Summary 511(2)
Index 513