Book description
Intermediate and advanced coverage of Visual Basic 2010 and .NET 4 for professional developers
If you've already covered the basics and want to dive deep into VB and .NET topics that professional programmers use most, this is your book. You'll find a quick review of introductory topics-always helpful-before the author team of experts moves you quickly into such topics as data access with ADO.NET, Language Integrated Query (LINQ), security, ASP.NET web programming with Visual Basic, Windows workflow, threading, and more.
You'll explore all the new features of Visual Basic 2010 as well as all the essential functions that you need, including .NET features such as LINQ to SQL, LINQ to XML, WCF, and more. Plus, you'll examine exception handling and debugging, Visual Studio features, and ASP.NET web programming.
Expert author team helps you master the tools and techniques you need most for professional programming
Reviews why Visual Basic 2010 will be synonymous with writing code in Visual Studio 2010
Focuses on .NET features such as LINQ, LINQ to SQL, LINQ to XML, WPF, workflow, and more
Discusses exception handling and debugging, data access with ADO.NET, Visual Studio features for Visual Basic developers, Windows programming with Windows Forms, ASP.NET web programming with VB, communication interfaces, Windows workflow, and threading
This Wrox guide presents you with updated coverage on topics you need to know now.
Table of contents
- Copyright
- ABOUT THE AUTHORS
- ABOUT THE TECHNICAL EDITORS
- CREDITS
- ACKNOWLEDGMENTS
- INTRODUCTION
-
I. Language Constructs and Environment
-
1. Visual Studio 2010
- 1.1. VISUAL STUDIO 2010: EXPRESS THROUGH ULTIMATE
-
1.2. VISUAL BASIC KEYWORDS AND SYNTAX
- 1.2.1. Console Applications
- 1.2.2. Creating a Project from a Project Template
- 1.2.3. The Solution Explorer
- 1.2.4. Project Properties
- 1.2.5. Assembly Information Screen
- 1.2.6. Compiler Settings
- 1.2.7. Debug Properties
- 1.2.8. References
- 1.2.9. Resources
- 1.2.10. Settings
- 1.2.11. Other Project Property Tabs
- 1.3. PROJECT PROVB_VS2010
- 1.4. ENHANCING A SAMPLE APPLICATION
- 1.5. USEFUL FEATURES OF VISUAL STUDIO 2010
- 1.6. SUMMARY
-
2. Objects and Visual Basic
- 2.1. OBJECT-ORIENTED TERMINOLOGY
- 2.2. WORKING WITH VISUAL BASIC TYPES
- 2.3. COMMANDS: CONDITIONAL
- 2.4. VALUE TYPES (STRUCTURES)
- 2.5. REFERENCE TYPES (CLASSES)
- 2.6. PARAMETER PASSING
- 2.7. VARIABLE SCOPE
- 2.8. WORKING WITH OBJECTS
- 2.9. DATA TYPE CONVERSIONS
-
2.10. CREATING CLASSES
-
2.10.1. Basic Classes
- 2.10.1.1. The Class Keyword
- 2.10.1.2. Fields
- 2.10.1.3. Methods
- 2.10.1.4. Methods That Return Values
- 2.10.1.5. Indicating Method Scope
- 2.10.1.6. Method Parameters
- 2.10.1.7. Properties
- 2.10.1.8. Parameterized Properties
- 2.10.1.9. Read-Only Properties
- 2.10.1.10. Write-Only Properties
- 2.10.1.11. The Default Property
- 2.10.1.12. Events
- 2.10.2. Handling Events
- 2.10.3. Handling Multiple Events
- 2.10.4. The WithEvents Keyword
- 2.10.5. Raising Events
- 2.10.6. Declaring and Raising Custom Events
- 2.10.7. Receiving Events with WithEvents
- 2.10.8. Receiving Events with AddHandler
- 2.10.9. Constructor Methods
- 2.10.10. Termination and Cleanup
-
2.10.1. Basic Classes
- 2.11. ADVANCED CONCEPTS
- 2.12. SUMMARY
-
3. Custom Objects
-
3.1. INHERITANCE
-
3.1.1. Implementing Inheritance
- 3.1.1.1. Creating a Base Class
- 3.1.1.2. Creating a Subclass
- 3.1.1.3. Overloading Methods
- 3.1.1.4. Overriding Methods
- 3.1.1.5. The Overridable Keyword
- 3.1.1.6. The Overrides Keyword
- 3.1.1.7. The MyBase Keyword
- 3.1.1.8. Virtual Methods
- 3.1.1.9. Shadowing
- 3.1.1.10. Private Shadows Age As String
- 3.1.1.11. Levels of Inheritance
- 3.1.2. Interacting with the Base Class, Your Class, and Your Object
- 3.1.3. Simple Constructors
- 3.1.4. Creating an Abstract Base Class
-
3.1.1. Implementing Inheritance
- 3.2. MULTIPLE INTERFACES
- 3.3. ABSTRACTION
- 3.4. ENCAPSULATION
- 3.5. POLYMORPHISM
- 3.6. INHERITANCE
- 3.7. SUMMARY
-
3.1. INHERITANCE
- 4. The Common Language Runtime
- 5. Declarative Programming with Visual Basic
-
6. Exception Handling and Debugging
- 6.1. NEW IN VISUAL STUDIO 2010 TEAM SYSTEM: HISTORICAL DEBUGGING
- 6.2. NOTES ON COMPATIBILITY WITH VB6
- 6.3. EXCEPTIONS IN .NET
- 6.4. STRUCTURED EXCEPTION-HANDLING KEYWORDS
- 6.5. INTEROPERABILITY WITH VB6-STYLE ERROR HANDLING
- 6.6. ERROR LOGGING
- 6.7. SUMMARY
- 7. Test-Driven Development
-
1. Visual Studio 2010
-
II. Business Objects and Data Access
- 8. Arrays, Collections, and Generics
-
9. Using XML with Visual Basic
- 9.1. AN INTRODUCTION TO XML
- 9.2. XML SERIALIZATION
- 9.3. SYSTEM.XML DOCUMENT SUPPORT
- 9.4. XML STREAM-STYLE PARSERS
- 9.5. XSL TRANSFORMATIONS
- 9.6. XML IN ASP.NET
- 9.7. LINQ TO XML
- 9.8. LINQ HELPER XML OBJECTS
- 9.9. VISUAL BASIC AND XML LITERALS
- 9.10. USING LINQ TO QUERY XML DOCUMENTS
- 9.11. WORKING WITH THE XML DOCUMENT
- 9.12. LAMBDA EXPRESSIONS IN VISUAL BASIC
- 9.13. SUMMARY
-
10. ADO.NET and LINQ
- 10.1. ADO.NET ARCHITECTURE
- 10.2. BASIC ADO.NET FEATURES
- 10.3. .NET DATA PROVIDERS
- 10.4. THE DATASET COMPONENT
- 10.5. WORKING WITH THE COMMON PROVIDER MODEL
- 10.6. CONNECTION POOLING IN ADO.NET
- 10.7. TRANSACTIONS AND SYSTEM.TRANSACTIONS
- 10.8. LINQ TO SQL
- 10.9. LINQ TO SQL AND VISUAL BASIC
- 10.10. HOW OBJECTS MAP TO LINQ OBJECTS
- 10.11. QUERYING THE DATABASE
- 10.12. STORED PROCEDURES
- 10.13. UPDATING THE DATABASE
- 10.14. SUMMARY
- 11. Data Access with the Entity Framework
-
12. Working with SQL Server
- 12.1. SQL SERVER COMPACT
- 12.2. SQL SERVER'S BUILT-IN XML FEATURES
- 12.3. CLR INTEGRATION IN SQL SERVER
- 12.4. WCF DATA SERVICES
- 12.5. REST
- 12.6. SUMMARY
-
13. Services (XML/WCF)
- 13.1. INTRODUCTION TO SERVICES
- 13.2. THE LARGER MOVE TO SOA
- 13.3. BUILDING A WCF SERVICE
- 13.4. BUILDING A WCF CONSUMER
- 13.5. WORKING WITH DATA CONTRACTS
- 13.6. NAMESPACES
- 13.7. SUMMARY
-
III. Smart Client Applications
-
14. Windows Forms
- 14.1. THE SYSTEM.WINDOWS.FORMS NAMESPACE
-
14.2. USING FORMS
- 14.2.1. Setting a Startup Form
- 14.2.2. Showing Forms via Sub Main
- 14.2.3. More about the Application Class
- 14.2.4. Startup Location for a Form
- 14.2.5. Form Borders
- 14.2.6. Always on Top — the TopMost Property
- 14.2.7. Owned Forms
- 14.2.8. Making Forms Transparent and Translucent
- 14.2.9. Visual Inheritance
- 14.2.10. Scrollable Forms
- 14.2.11. MDI Forms
- 14.2.12. An MDI Example in VB 2010
- 14.2.13. Dialog Forms
- 14.2.14. Forms at Runtime
- 14.2.15. Default Instances of Forms
-
14.3. CONTROLS
- 14.3.1. Control Tab Order
- 14.3.2. Properties for All Controls
- 14.3.3. Dynamic Sizing and Positioning of Controls
- 14.3.4. FlowLayoutPanel Control
- 14.3.5. TableLayoutPanel Control
- 14.3.6. Panel and Groupbox Container Controls
- 14.3.7. Extender Providers
- 14.3.8. Advanced Capabilities for Data Entry
- 14.3.9. Validating Data Entry
- 14.3.10. Toolbars and the ToolStrip Control
- 14.3.11. Menus
- 14.3.12. Common Dialogs
- 14.3.13. Drag and Drop
- 14.3.14. Summary of Standard Windows.Forms Controls
- 14.3.15. Handling Groups of Related Controls
- 14.3.16. Adding Controls at Runtime
- 14.4. OTHER HANDY PROGRAMMING TIPS
- 14.5. SUMMARY
-
15. Advanced Windows Forms
- 15.1. PACKAGING LOGIC IN VISUAL CONTROLS
- 15.2. CUSTOM CONTROLS IN WINDOWS FORMS
- 15.3. INHERITING FROM AN EXISTING CONTROL
- 15.4. THE CONTROL AND USERCONTROL BASE CLASSES
- 15.5. A COMPOSITE USERCONTROL
- 15.6. BUILDING A CONTROL FROM SCRATCH
- 15.7. ATTACHING AN ICON FOR THE TOOLBOX
- 15.8. EMBEDDING CONTROLS IN OTHER CONTROLS
- 15.9. SUMMARY
- 16. User Controls Combining WPF and Windows Forms
- 17. WPF Desktop Applications
- 18. Expression Blend 3
- 19. Silverlight
-
14. Windows Forms
-
IV. Internet Applications
- 20. Silverlight and Services
-
21. Working with ASP.NET
- 21.1. THE HISTORY OF ASP.NET
- 21.2. KEY FEATURES OF ASP.NET
- 21.3. VISUAL STUDIO SUPPORT FOR ASP.NET
- 21.4. BUILDING ASP.NET APPLICATIONS USING WEB FORMS
- 21.5. DATA-DRIVEN APPLICATIONS
- 21.6. SUMMARY
- 22. ASP.NET Advanced Features
- 23. ASP.NET MVC
- 24. SharePoint 2010 Development
-
V. Libraries and Specialized Topics
- 25. Visual Studio Tools for Office
- 26. Windows Workflow Foundation
- 27. Localization
- 28. COM-Interop
- 29. Network Programming
-
30. Application Services
- 30.1. USING IIS FOR APPLICATION SERVICES
- 30.2. WINDOWS SERVICES
- 30.3. CHARACTERISTICS OF A WINDOWS SERVICE
- 30.4. INTERACTING WITH WINDOWS SERVICES
- 30.5. CREATING A WINDOWS SERVICE
- 30.6. CREATING A WINDOWS SERVICE IN VISUAL BASIC
-
30.7. CREATING A FILE WATCHER SERVICE
- 30.7.1. Creating a Solution for the Windows Service
-
30.7.2. Adding .NET Components to the Service
- 30.7.2.1. The FileSystemWatcher Component
- 30.7.2.2. The EnableRaisingEvents Property
- 30.7.2.3. The Path Property
- 30.7.2.4. The NotifyFilter Property
- 30.7.2.5. The Filter Property
- 30.7.2.6. The IncludeSubdirectories Property
- 30.7.2.7. Adding FileSystemWatcher Code to OnStart and OnStop
- 30.7.2.8. The EventLog Component
- 30.7.2.9. The Created Event
- 30.7.3. Installing the Service
- 30.7.4. Starting the Service
- 30.7.5. Uninstalling the Service
- 30.8. COMMUNICATING WITH THE SERVICE
- 30.9. CUSTOM COMMANDS
- 30.10. PASSING STRINGS TO A SERVICE
- 30.11. DEBUGGING THE SERVICE
- 30.12. SUMMARY
-
31. Assemblies and Reflection
- 31.1. ASSEMBLIES
- 31.2. THE MANIFEST
- 31.3. ASSEMBLIES AND DEPLOYMENT
- 31.4. VERSIONING ISSUES
- 31.5. BASICS OF REFLECTION
- 31.6. DYNAMIC LOADING OF ASSEMBLIES
- 31.7. SUMMARY
- 32. Security in the .NET Framework
-
33. Parallel Programming Using Tasks and Threads
- 33.1. LAUNCHING PARALLEL TASKS
- 33.2. TRANSFORMING SEQUENTIAL CODE TO PARALLEL CODE
- 33.3. PARALLELIZING LOOPS
- 33.4. SPECIFYING THE DESIRED DEGREE OF PARALLELISM
-
33.5. CREATING AND MANAGING TASKS
- 33.5.1. System.Threading.Tasks.Task
- 33.5.2. Understanding a Task's Life Cycle
- 33.5.3. Using Tasks to Parallelize Code
- 33.5.4. Returning Values from Tasks
- 33.5.5. Preparing the Code for Concurrency and Parallelism
- 33.5.6. Understanding Concurrent Collection Features
- 33.5.7. Transforming LINQ into PLINQ
- 33.6. SUMMARY
-
34. Deployment
- 34.1. APPLICATION DEPLOYMENT
- 34.2. CHOOSING A FRAMEWORK VERSION
- 34.3. VISUAL STUDIO DEPLOYMENT PROJECTS
- 34.4. MODIFYING THE DEPLOYMENT PROJECT
-
34.5. INTERNET DEPLOYMENT OF WINDOWS APPLICATIONS
- 34.5.1. No-Touch Deployment
-
34.5.2. ClickOnce Deployment
- 34.5.2.1. Configuring an Application for ClickOnce
- 34.5.2.2. Online versus Locally Installed Applications
- 34.5.2.3. Deploying an Online Application
- 34.5.2.4. Deploying an Application That Is Available Offline
- 34.5.2.5. Files and Directories Produced by ClickOnce
- 34.5.2.6. Signing the Manifest
- 34.5.2.7. The Update Process
- 34.5.2.8. ClickOnce Configuration Options
- 34.5.2.9. The Bootstrapper
- 34.5.2.10. Manual Editing of ClickOnce Manifests
- 34.5.2.11. Rolling Back or Uninstalling ClickOnce Applications
- 34.5.2.12. ClickOnce versus Other Deployment Technologies
- 34.6. IIS WEB DEPLOYMENT TOOL
- 34.7. SUMMARY
-
A. The Visual Basic Compiler
- A.1. THE VBC.EXE.CONFIG FILE
- A.2. SIMPLE STEPS TO COMPILATION
-
A.3. COMPILER OPTIONS
- A.3.1. Output Files
- A.3.2. Input Files
- A.3.3. Resources
- A.3.4. Code Generation
- A.3.5. Errors and Warnings
- A.3.6. Language
- A.3.7. Miscellaneous Features
- A.3.8. /verbose
-
A.3.9. Advanced Features
- A.3.9.1. /baseaddress
- A.3.9.2. /bugreport
- A.3.9.3. /codepage
- A.3.9.4. /delaysign[+:-]
- A.3.9.5. /errorreport
- A.3.9.6. /filealign
- A.3.9.7. /keycontainer
- A.3.9.8. /keyfile
- A.3.9.9. /libpath
- A.3.9.10. /main
- A.3.9.11. /moduleassemblyname
- A.3.9.12. /netcf
- A.3.9.13. /nostdlib
- A.3.9.14. /platform
- A.3.9.15. /sdkpath
- A.3.9.16. /utf8output[+:-]
- A.3.9.17. @<file>
- A.3.9.18. /vbruntime[+:-]
- A.4. LOOKING AT THE VBC.RSP FILE
- B. Visual Basic Power Packs Tools
- C. Workflow 2008 Specifics
-
D. Enterprise Services
- D.1. TRANSACTIONS
-
D.2. TRANSACTIONAL COMPONENTS
- D.2.1. An Example of Transactions
- D.2.2. Test Application
- D.3. OTHER ASPECTS OF TRANSACTIONS
- D.4. QUEUED COMPONENTS
- D.5. SUMMARY
- E. Programming for the Cloud
Product information
- Title: Professional Visual Basic® 2010 and .NET 4
- Author(s):
- Release date: May 2010
- Publisher(s): Wrox
- ISBN: 9780470502242
You might also like
book
Pro VB 2010 and the .NET 4 Platform
Be the first to understand .NET 4.0 and Visual Basic 2010. Pro VB 2010 and the …
book
Visual Basic® 2010 Unleashed
Foreword by Beth Massi Visual Basic 2010 Unleashed is the most comprehensive, practical reference to modern …
book
Mastering Microsoft® Visual Basic® 2010
The new edition of the ultimate comprehensive guide to Microsoft Visual Basic Where most VB books …
book
Visual Basic® 2012 Unleashed, Second Edition
Fully updated for Windows 8 support, .NET 4.5, and Windows Phone development, this is the most …