Visual Basic 2010 Unleashed

Af Alessandro Del Sole
Detaljer Pearson Education, Limited
ISBN 9780672331008
Sprog Engelsk
Pris 367,00 kr.
Paperback

Ikke på lager

Bogen er udgået og er erstattet af nyere udgave

Foreword by Beth Massi

Senior Program Manager, Microsoft Visual Studio


 


Visual Basic 2010 Unleashed is the most comprehensive, practical reference to modern object-oriented programming with Visual Basic 2010. Written by Visual Basic MVP Alessandro Del Sole, a long-time leader of the global VB community, this book illuminates the core of the VB language and demonstrates its effective use in a wide variety of programming scenarios.


 


Del Sole covers both Visual Basic 2010 Professional Edition for professional developers and the Express Edition for hobbyists, novices, and students. Writing for VB programmers at all levels of experience, he walks through using VB 2010 for data access, user interface development, networking, communication, and many other tasks. For those moving from structured languages-including VB 6-he offers detailed guidance on building effective object-oriented code. He also demonstrates how to make the most of Microsoft's underlying .NET platform to write more robust and powerful software.


 


This book's broad coverage includes advanced features such as generics and collections; a thorough introduction to the Visual Studio 2010 IDE and Visual Studio Team System; a full section on data access with ADO.NET and LINQ; practical overviews of WPF and WCF; coverage of web and cloud development with Silverlight and Azure; and advanced topics such as multithreading, testing, and deployment.


 



  • Understand the Visual Studio 2010 IDE, .NET Framework 4.0, and the anatomy of a VB 2010 application

  • Debug VB applications and implement error handling and exceptions

  • Build efficient object-oriented software with classes, objects, namespaces, and inheritance

  • Work with advanced object-oriented features, including interfaces, generics, delegates, events, and collections

  • Organize, create, and improve classes with the Visual Studio Class Designer

  • Access data with LINQ-including LINQ to Objects, SQL, DataSets, Entities, XML, and Parallel LINQ

  • Build modern Windows applications with WPF controls, brushes, styles, and templates

  • Develop web-centric applications using ASP.NET, Silverlight, and Windows Azure Services cloud computing

  • Create and consume WCF services and WCF Data Services

  • Use advanced .NET 4.0 platform capabilities, including assemblies, multithreading, parallel programming, P/Invoke, and COM interoperability

  • Perform advanced compilations with MSBuild

  • Localize and globalize VB 2010 client applications


 


Alessandro Del Sole, Microsoft MVP for Visual Basic, is well-known throughout the global VB community. He is community leader on the Italian VB Tips and Tricks website that serves more than 41,000 developers and a frequent contributor and blogger at MSDN's Visual Basic Developer Center. He is the author of three books about .NET development with Visual Basic.


 


ON THE WEB:


Download all examples and source code presented in this book from informit.com/title/9780672331008


 


Category: Microsoft Programming


Covers: Visual Basic 2010


User Level: Intermediate


 


 


 


Part I Learning the Basics of VB 1 Introducing the
.NET Framework
4.0 1 What Is the
.NET Framework'........................................................................1 Where Is the
.NET Framework
..............................................................2 The
.NET Framework Architecture
........................................................2 The Common Language Runtime
..................................................................4 Writing Managed Code
.........................................................................4
.NET Assemblies.....................................................................................5 The Base Class Library
....................................................................................5
.NET Languages...............................................................................................6
.NET Framework Tools
....................................................................................7 Windows Software Development Kit
....................................................7 What''s New in
.NET Framework
4.0
..............................................................8 2 Getting Started with the Visual Studio 2010 IDE 11 What''s New in Visual Studio 2010
...............................................................11 Start Page.......................................................................................................12 Get Started Tab
....................................................................................13 The Guidance and Resources Tab........................................................13 The Latest News Tab
............................................................................14 Working with Projects and Solutions...........................................................15 Creating Visual Basic Projects
.............................................................16 Multitargeting......................................................................................17 Accessing Recent and Online Templates.............................................18 Searching for Installed Templates
.......................................................20 Creating Reusable Projects and Items Templates................................21 Creating Your First Visual Basic 2010 Project
.....................................21 Finding Visual Basic Projects...............................................................23 Working with the Code Editor............................................................24 Working with Tool Windows........................................................................26 The Solution Explorer Window...........................................................27 Error List Window
...............................................................................28 The Properties Window
.......................................................................30 Output Window...................................................................................31 My Project
.....................................................................................................31 Application Tab....................................................................................33 Compiling Projects
.......................................................................................37 Debug and Release Configurations
.....................................................38 Other Compile Options.......................................................................41 Advanced Compile Options
................................................................44 Debugging Overview.....................................................................................47 Debugging an Application...................................................................47 Breakpoints and Data Tips
..................................................................49 About Runtime Errors..........................................................................52 Edit and Continue
...............................................................................53 Browsing the Visual Basic and
.NET Documentation..................................54 Online Help and the MSDN Library
...................................................55 Object Browser Window......................................................................55 3 The Anatomy of a Visual Basic Project 59 Brief Overview of Types and Members.........................................................59 Classes
..................................................................................................60 Properties
.............................................................................................60 Methods
...............................................................................................60 Modules
...............................................................................................61 Structures
.............................................................................................61 Inheritance...........................................................................................61 Namespaces..........................................................................................62 Accessing Members..............................................................................63 Imports Directives................................................................................64 #Region..#End Region Directives........................................................64 Attributes
.............................................................................................65 A New Feature: Implicit Line Continuation
.......................................65 Visual Basic 2010 Reserved Keywords
..........................................................67 Understanding Project Files..........................................................................70 Dissecting My Project
..........................................................................70 Application.MyApp
.............................................................................70 AssemblyInfo.vb
..................................................................................72 Resources and the Resources.resx File
.................................................73 Application Settings.............................................................................77 Understanding References
............................................................................79 Adding References to COM Libraries
..................................................82 Deploy Without PIAs...........................................................................83 Final Considerations............................................................................84 4 Data Types and Expressions 85 Common Type System..................................................................................85 Everything Is an Object.......................................................................86 Introducing Value Types and Reference Types
...................................86 System.Object and System.ValueType...............................................87 Understanding Value Types..........................................................................89
.NET Framework Primitive Value Types
..............................................90 Using Value Types................................................................................92 Working with BigInteger
...................................................................100 Building Custom Value Types
...........................................................101 Understanding Reference Types
.................................................................101
.NET Framework Primitive Reference Types
.....................................103 Differences Between Value Types and Reference Types
.............................104 Memory Allocation............................................................................104 Object-Oriented Differences..............................................................107 Performance Differences....................................................................109 What Custom Type Should I Choose'..............................................109 Converting Between Value Types and Reference Types.............................110 Understanding Implicit Conversions................................................110 Boxing and Unboxing
.......................................................................112 Deep Copy and Shallow Copy
..........................................................114 The GetType Keyword........................................................................118 Conversion Operators.................................................................................119 Widening and Narrowing Conversions
............................................119 Working with
.NET Fundamental Types
....................................................124 Working with Strings.........................................................................125 Working with Dates...........................................................................137 Working with Time.............................