Beginning Visual Basic 2012

Book description

The ultimate beginner's guide to programming in Visual Basic 2012

Visual Basic, used to write Windows applications and web apps with ASP.NET, is an essential language for beginning programmers. Using the time-tested Wrox approach, this guide provides a step-by-step format that gets beginners up and running quickly and confidently. Essential topics covered include writing Windows applications, working with dialog boxes and menus, object oriented programming techniques, programming for graphics, using Visual Basic with ASP.NET for web apps, and dealing with data access and SQL Server.

  • Visual Basic is a popular first language for beginning programmers; this Wrox beginner's guide covers all aspects of the newest version

  • Uses a basic, step-by-step approach to help beginners learn quickly and easily

  • Covers essential topics including flow control, data structure, writing Windows applications, error handling and debugging, objects and object oriented techniques, and class libraries

  • Explains Windows Forms, graphics programming, accessing databases, web programming using Visual Basic with ASP.NET, data access, SQL Server, ADO.NET, and XML

  • Beginning Visual Basic 2012 is a must-have for programming newcomers who want to get a solid footing in one of the most important programming languages.

    Table of contents

    1. Cover
    2. Chapter 1: Welcome to Visual Basic 2012
      1. Event-Driven Programming
      2. Installing Visual Basic 2012
      3. The Visual Studio 2012 IDE
      4. Creating a Simple Application
      5. Using the Help System
      6. Summary
    3. Chapter 2: The Microsoft .NET Framework
      1. Microsoft's Reliance on Windows
      2. Writing Software for Windows
      3. Common Language Runtime
      4. The Common Type System and Common Language Specification
      5. Summary
    4. Chapter 3: Writing Software
      1. Information and Data
      2. Working with Variables
      3. Comments and Whitespace
      4. Data Types
      5. Storing Variables
      6. Methods
      7. Summary
    5. Chapter 4: Controlling the Flow
      1. Making Decisions
      2. The If Statement
      3. Select Case
      4. Loops
      5. Summary
    6. Chapter 5: Working with Data Structures
      1. Understanding Arrays
      2. Understanding Enumerations
      3. Understanding Constants
      4. Structures
      5. Working with ArrayLists
      6. Working with Collections
      7. Building Lookup Tables with Hashtable
      8. Advanced Array Manipulation
      9. Summary
    7. Chapter 6: Extensible Application Markup Language (XAML)
      1. What Is XAML?
      2. XAML Syntax
      3. Windows Presentation Foundation
      4. Summary
    8. Chapter 7: Building Windows Applications
      1. Responding to Events
      2. Building a Simple Application
      3. Counting Characters
      4. Counting Words
      5. Creating More Complex Applications
      6. Creating the Toolbar
      7. Creating the Status Bar
      8. Creating an Edit Box
      9. Clearing the Edit Box
      10. Responding to Toolbar Buttons
      11. Using Multiple Forms
      12. About Dialog
      13. Summary
    9. Chapter 8: Displaying Dialogs
      1. The MessageBox
      2. The OpenFileDialog Control
      3. The SaveDialog Control
      4. The FontDialog Control
      5. The ColorDialog Control
      6. The PrintDialog Control
      7. The FolderBrowserDialog Control
      8. Summary
    10. Chapter 9: Creating Menus
      1. Understanding Menu Features
      2. Creating Menus
      3. Context Menus
      4. Summary
    11. Chapter 10: Debugging and Error Handling
      1. Major Error Types
      2. Debugging
      3. Error Handling
      4. Summary
    12. Chapter 11: Building Objects
      1. Understanding Objects
      2. Building Classes
      3. Reusability
      4. Designing an Object
      5. Constructors
      6. Inheritance
      7. Objects and Structures
      8. The Framework Classes
      9. Summary
    13. Chapter 12: Advanced Object-Oriented Techniques
      1. Building a Favorites Viewer
      2. An Alternative Favorite Viewer
      3. Using Shared Properties and Methods
      4. Understanding Object-Oriented Programming and Memory Management
      5. Summary
    14. Chapter 13: Building Class Libraries
      1. Understanding Class Libraries
      2. Using Strong Names
      3. Registering Assemblies
      4. Designing Class Libraries
      5. Using Third-Party Class Libraries
      6. Viewing Classes with the Object Browser
      7. Summary
    15. Chapter 14: Creating Windows Forms User Controls
      1. Windows Forms Controls
      2. Creating and Testing a User Control
      3. Exposing Properties from User Controls
      4. Design Time or Runtime
      5. Creating a Command Link Control
      6. Summary
    16. Chapter 15: Accessing Data Using Structured Query Language
      1. What You Need to Complete This Chapter's Exercises
      2. What Is a Database?
      3. Understanding Basic SQL Syntax
      4. Executing Queries in SQL Server
      5. Summary
    17. Chapter 16: Database Programming with SQL Server and ADO.NET
      1. ADO.NET
      2. ADO.NET Data Namespaces
      3. The ADO.NET Classes in Action
      4. Data Binding
      5. Summary
    18. Chapter 17: Dynamic Data Website
      1. Creating a Dynamic Data Entities Website
      2. Customizing the Design of a Dynamic Data Website
      3. Summary
    19. Chapter 18: ASP.NET
      1. Thin-Client Architecture
      2. Web Forms versus Windows Forms
      3. Web Applications: The Basic Pieces
      4. Active Server Pages
      5. Building Websites
      6. Summary
    20. Chapter 19: Deploying Your Application
      1. What Is Deployment?
      2. Creating a Visual Studio 2012 Setup Application
      3. Customize the User Interface
      4. Deploying Different Solutions
      5. Summary
    21. Chapter 20: Windows 8 Apps
      1. Windows 8 Application Design Principles
      2. Application Layout
      3. Summary
    22. Appendix A: Exercise Solutions
      1. Chapter 1
      2. Chapter 2
      3. Chapter 3
      4. Chapter 4
      5. Chapter 5
      6. Chapter 6
      7. Chapter 7
      8. Chapter 8
      9. Chapter 9
      10. Chapter 10
      11. Chapter 11
      12. Chapter 12
      13. Chapter 13
      14. Chapter 14
      15. Chapter 15
      16. Chapter 16
      17. Chapter 17
      18. Chapter 18
      19. Chapter 19
      20. Chapter 20
    23. Appendix B: Where to Now?
      1. Online Resources
      2. Offline Resources (Books)
    24. Introduction
    25. Advertisements

    Product information

    • Title: Beginning Visual Basic 2012
    • Author(s):
    • Release date: September 2012
    • Publisher(s): Wrox
    • ISBN: 9781118311813