Description
Your expert guide to building modern applications with Visual Basic 2010Take control of Visual Basic 2010-for everything from basic Windows(R) and web development to advanced multithreaded applications. Written by Visual Basic experts, this handbook provides an in-depth reference on language concepts and features, as well as scenario-based guidance for putting Visual Basic to work. It's ideal whether you’re creating new applications with Visual Basic 2010 or upgrading projects built with an earlier version of the language.
Discover how to:
* Use Visual Basic 2010 for Windows Forms and Windows Presentation Foundation projects
* Build robust code using object-oriented programming techniques, such as classes and types
* Work with events and delegates-and add your own events to custom classes
* Program arrays, collections, and other data structures in the Microsoft .NET Framework
* Solve problems quickly and easily using My namespace in Visual Basic
* Dive into Microsoft LINQ, including LINQ to XML and LINQ to Entities
* Tackle threading, multitasking, and multiprocessor development and debugging
CONTENTS:
; Foreword; Introduction; Who Should Read This Book; Who Should Not Read This Book; Organization of This Book; Conventions and Features in This Book; System Requirements; Code Samples; Acknowledgments; Errata and Book Support; We Want to Hear from You; Stay in Touch; Beginning with Language and Tools; Chapter 1: Beginners All-Purpose Symbolic Instruction Code; 1.1 Starting Visual Studio for the First Time; 1.2 Console Applications; 1.3 Anatomy of a (Visual Basic) Program; 1.4 Starting Up with the Main Method; 1.5 Methods with and Without Return Values; 1.6 Declaring Variables; 1.7 Expressions and Definitions of Variables; 1.8 Comparing Objects and Data Types; 1.9 Properties; 1.10 Type Literal for Determining Constant Types; 1.11 Type Safety; 1.12 Arrays and Collections; 1.13 Executing Program Code Conditionally; 1.14 Loops; 1.15 Simplified Access to Object Properties and Methods Using With ... End With; 1.16 The Scope of Variables; 1.17 The += and - = Operators and Their Relatives; 1.18 Error Handling in Code; Chapter 2: Introduction to the .NET Framework; 2.1 What Is .NET, and What Is It Composed Of?; 2.2 What Is an Assembly?; Chapter 3: Sightseeing; 3.1 Introduction; 3.2 Starting Visual Studio for the First Time: Selecting the Profile; 3.3 The Start Page: Where Your Developing Endeavors Begin; 3.4 Upgrading Visual Basic 6.0 Applications to Visual Studio 2010; 3.5 The History of Multitargeting; 3.6 Interesting Read for Multitargeting; 3.7 Zooming In the New and Improved WPF-Based IDE; 3.8 Searching, Understanding, and Navigating Code; 3.9 Regions and Outlining; 3.10 Architecture Explorer; 3.11 The Generate From Usage Feature; 3.12 Extending Visual Studio; Chapter 4: Introduction to Windows Forms - Designers and Code Editor by Example; 4.1 Case Example: the DVD Cover Generator; 4.2 Designing Forms with the Windows Forms Designer; 4.3 The Code Editor; Chapter 5: Introduction to Windows Presentation Foundation; 5.1 What Is the Windows Presentation Foundation?; 5.2 What’s So New About WPF?; 5.3 How WPF Brings Designers and Developers Together; 5.4 Extensible Application Markup Language; 5.5 XAML Syntax Overview; 5.6 ImageResizer - a Practical WPF Example; Chapter 6: The Essential .NET Data Types; 6.1 Numeric Data Types; 6.2 The Char Data Type; 6.3 The String Data Type; 6.4 The Boolean Data Type; 6.5 The Date Data Type; 6.6 .NET Equivalents of Base Data Types; 6.7 Constants and Read-Only Fields (Read-Only Members); Object-Oriented Programming; Chapter 7: A Brief Introduction to Object-Oriented Programming; 7.1 Using Classes and Objects: When and Why?; Chapter 8: Class Begins; 8.1 What Is a Class?; 8.2 Instantiating Classes with New; 8.3 New or Not New: About Objects and Reference Types; 8.4 Nothing; 8.5 Using Classes; 8.6 Value Types; Chapter 9: First Class Programming; 9.1 Using Properties; 9.2 Class Constructors: Defining What Happens in New; 9.3 Class Methods with Sub and Function; 9.4 Overloading Methods, Constructors, and Properties; 9.5 Specifying Variable Scope with Access Modifiers; 9.6 Static Elements; 9.7 Distributing Class Code over Multiple Code Files by Using Partial; Chapter 10: Class Inheritance and Polymorphism; 10.1 Reusing Classes Through Inheritance; 10.2 Overriding Methods and Properties; 10.3 Polymorphism; 10.4 Abstract Classes and Virtual Procedures; 10.5 Interfaces; 10.6 The Built-In Members of the Object Type; 10.7 Shadowing of Class Procedures; 10.8 Special Form "Module” in Visual Basic; 10.9 Singleton Classes and Self-Instantiating Classes; Chapter 11: Developing Value Types; 11.1 A Practical Example of Structures; 11.2 Passing Value and Reference Parameters; 11.3 Constructors and Default Instantiations of Value Types; 11.4 When to Use Value Types - When to Use Reference Types; 11.5 Targeted Memory Assignment for Structure Members with the Attributes StructLayout and FieldOffset; Chapter 12: Typecasting and Boxing Value Types; 12.1 Converting Primitive Types; 12.2 Converting to and from Strings; 12.3 Casting Reference Types by Using DirectCast; 12.4 Boxing Value Types; 12.5 Changing the Values of Interface-Boxed Value Types; Chapter 13: Dispose, Finalize, and the Garbage Collector; 13.1 The Garbage Collector in .NET; 13.2 The Speed in Allocating Memory for New Objects; 13.3 Finalize; 13.4 Dispose; 13.5 Targeted Object Release with Using; Chapter 14: Operators for Custom Types; 14.1 Introduction to Operator Procedures; 14.2 Preparing a Structure or Class for Operator Procedures; 14.3 Implementing Operators; 14.4 Implementing Comparison Operators; 14.5 Implementing Type Conversion Operatorssssss for Use with CType; 14.6 Implementing True and False Evaluation Operators; 14.7 Problem Handling for Operator Procedures; 14.8 Implementable Operators: an Overview; Chapter 15: Events, Delegates, and Lambda Expressions; 15.1 Consuming Events with WithEvents and Handles; 15.2 Raising Events; 15.3 Providing Event Parameters; 15.4 Delegates; 15.5 Lambda Expressions; 15.6 Embedding Events Dynamically with AddHandler; 15.7 Implementing Your Own Event Handlers; Chapter 16: Enumerations; 16.1 Introduction to Enumerations; 16.2 Determining the Values of Enumeration Elements; 16.3 Determining the Types of Enumeration Elements; 16.4 Converting Enumerations to Other Types; 16.5 Flags Enumerations; Chapter 17: Developing with Generics; 17.1 Introduction; 17.2 Solution Approaches; 17.3 Standardizing the Code Base of a Type by Using Generics; 17.4 Constraints; Chapter 18: Advanced Types; 18.1 Nullable Value Types; 18.2 Generic Delegates; 18.3 Tuple(Of T); 18.4 Type Variance; 18.5 Extension Methods; Programming with .NET Framework Data Structures; Chapter 19: Arrays and Collections; 19.1 Array Basics; 19.2 Initializing Arrays; 19.3 Enumerators; 19.4 Collection Basics; 19.5 Initializing Collections; 19.6 Important Collections of .NET Framework; 19.7 Generic Collections; Chapter 20: Serialization; 20.1 Introduction to Serialization Techniques; 20.2 Shallow and Deep Object Cloning; 20.3 Serializing Objects with Circular References; 20.4 XML Serialization; Chapter 21: Attributes and Reflection; 21.1 Introduction to Attributes; 21.2 Introduction to Reflection; 21.3 Creating Custom Attributes and Recognizing Them at Runtime; Development Simplifications in Visual Basic 2010; Chapter 22: Using My as a Shortcut to Common Framework Functions; 22.1 Visual Basic 2010 Simplifications Using the Example of the DotNetCopy Backup Tool; 22.2 The Principle Functionality of DotNetCopy; 22.3 The My Namespace; 22.4 Calling Forms Without Instantiation; 22.5 Reading Command-Line Arguments with My.Application.CommandLineArgs; 22.6 Targeted Access to Resources with My.Resources; 22.7 Writing Localizable Applications with Resource Files and the My Namespace; 22.8 Simplified File Operations with My.Computer.FileSystem; 22.9 Using Application Settings with My.Settings; Chapter 23: The Application Framework; 23.1 Application Framework Options; 23.2 Adding a Code File to Handle Application Events (Start, End, Network Status, Global Exceptions); Language-Integrated Query - LINQ; Chapter 24: Introduction to LINQ (Language-Integrated Query); 24.1 Getting Started with LINQ; 24.2 The Where Method; 24.3 The Select Method; 24.4 Combining LINQ Extension Methods; 24.5 Simplified Use of LINQ Extension Methods with the LINQ Query Syntax; Chapter 25: LINQ to Objects; 25.1 Getting Started with LINQ to Objects; 25.2 Anatomy of a LINQ Query; 25.3 LINQ Query Performance; 25.4 Concatenating LINQ Queries and Delayed Execution; 25.5 Combining Multiple Collections; 25.6 Grouping Collections; 25.7 Aggregate Functions; Chapter 26: LINQ to XML; 26.1 Getting Started with LINQ to XML; 26.2 Processing XML Documents - Yesterday and Today; 26.3 XML Literals: Using XML Directly in Code; 26.4 Creating XML Documents with LINQ; 26.5 Querying XML Documents with LINQ to XML; 26.6 IntelliSense Support for LINQ To XML Queries; Chapter 27: LINQ to Entities: Programming with Entity Framework; 27.1 Prerequisites for Testing the Examples; 27.2 LINQ to Entities: the First Practical Example; 27.3 Querying an Entity Model; 27.4 Modifying, Saving, and Deleting Data; 27.5 Updating a Data Model from a Database; 27.6 Model-First Design; 27.7 Inheritance in the Conceptual Data Model; 27.8 Executing T-SQL Commands Directly in the Object Context; 27.9 Working with Stored Procedures; 27.10 Looking Ahead; Parallelizing Applications; Chapter 28: Programming with the Task Parallel Library (TPL); 28.1 Introduction to Threading; 28.2 Various Options for Starting a Thread; 28.3 How to Access Windows Controls from Non-UI Threads; 28.4 Parallelization with Parallel.For and Parallel.ForEach; 28.5 Working with Tasks; 28.6 Synchronizing Threads; 28.7 What’s Next?; ; Klaus Löffelmann; Sarika Calla Purohit;
Published
14 Sep 2011
Publisher
MICROSOFT PRESS
ISBN
9780735627055
Pages
987




Static Book Details Index Page - Click Here to go to Computer Manuals Website