Skip to content

Beginning Visual Basic 2012

Best in textbook rentals since 2012!

ISBN-10: 1118311817

ISBN-13: 9781118311813

Edition: 2012

Authors: Bryan Newsome

List price: $74.95
Shipping box This item qualifies for FREE shipping.
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

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…    
Customers also bought

Book details

List price: $74.95
Copyright year: 2012
Publisher: John Wiley & Sons, Incorporated
Publication date: 8/31/2012
Binding: Paperback
Pages: 744
Size: 7.20" wide x 9.20" long x 1.60" tall
Weight: 2.750
Language: English

Introduction
Welcome To Visual Basic 2012
Event-Driven Programming
Installing Visual Basic 2012
The Visual Studio 2012 IDE
The Profile Setup Page
The Menu
The Toolbars
Creating a Simple Application
Windows in the Visual Studio 2012 IDE
The Toolbox
Modified Hungarian Notation
The Code Editor
Using the Help System
Summary
The Microsoft .Net Framework
Microsoft's Reliance on Windows
MSN 1.0
The .NET Vision
This Sounds Like Java
Where Now?
Writing Software for Windows
The .NET Framework Classes
Executing Code
Common Language Runtime
Code Loading and Execution
Application Isolation
Security
Interoperability
Exception Handling
The Common Type System and Common Language Specification
Summary
Writing Software
Information and Data
Algorithms
What Is a Programming Language?
Working with Variables
Comments and Whitespace
Comments
Whitespace
Data Types
Working with Numbers
Common Integer Math Operations
Integer Math Shorthand
The Problem with Integer Math
Floating-Point Math
Other States
Single-Precision Floating-Point Numbers
Working with Strings
Concatenation
Using the Concatenation Operator Inline
More String Operations
Substrings
Formatting Strings
Localized Formatting
Replacing Substrings
Using Dates
Formatting Date Strings
Extracting Date Properties
Date Constants
Defining Date Literals
Manipulating Dates
Boolean
Storing Variables
Binary
Bits and Bytes
Representing Values
Converting Values
Methods
Why Use Methods?
Methods You've Already Seen
Building a Method
Choosing Method Names
Scope
Summary
Controlling The Flow
Making Decisions
The If Statement
The Else Statement
Allowing Multiple Alternatives with ElseIf
Nested If Statements
Single-Line If Statement
Comparison Operators
Using Not Equal To
Using the Numeric Operators
The And and Or Operators
Using the And Operator
More on And and Or
String Comparison
Select Case
Case-Insensitive Select Case
Multiple Selections
The Case Else Statement
Different Data Types with Select Case
Loops
The For…Next Loop
Using the Step Keyword
Looping Backward
The For Each…Next Loop
The Do…Loop Loops
Do While…Loop
Acceptable Expressions for a Do…Loop
Other Versions of the Do…Loop
Nested Loops
Quitting Early
Quitting Do…Loops
Infinite Loops
Summary
Working With Data Structures
Understanding Arrays
Defining and Using Arrays
Using For Each…Next
Passing Arrays As Parameters
Sorting Arrays
Going Backward
Initializing Arrays with Values
Understanding Enumerations
Using Enumerations
Determining the State
Setting Invalid Values
Understanding Constants
Using Constants
Different Constant Types
Structures
Building Structures
Adding Properties to Structures
Working with ArrayLists
Using an ArrayList
Deleting from an ArrayList
Showing Items in the ArrayList
Working with Collections
Creating CustomerCollection
Adding an Item Property
Building Lookup Tables with Hashtable
Using Hashtables
Cleaning Up: Remove, RemoveAt, and Clear
Case Sensitivity
Advanced Array Manipulation
Dynamic Arrays
Using Preserve
Summary
Extensible Application Markup Language (XAML)
What Is XAML?
XAML Syntax
Windows Presentation Foundation
Creating a Rich WPF User Interface
Using WPF Common Controls
Wiring Up Events
Summary
Building Windows Applications
Responding to Events
Building a Simple Application
Counting Characters
Counting Words
Creating More Complex Applications
Creating the Toolbar
Creating the Status Bar
Creating an Edit Box
Clearing the Edit Box
Responding to Toolbar Buttons
Using Multiple Forms
About Dialog
Summary
Displaying Dialogs
The MessageBox
Available Icons for MessageBox
Available Buttons for MessageBox
Setting the Default Button
Miscellaneous Options
The Show Method Syntax
Example Message Boxes
The OpenFileDialog Control
The OpenFileDialog Control
The Properties of OpenFileDialog
OpenFileDialog Methods
Using the OpenFileDialog Control
The SaveDialog Control
The Properties of SaveFileDialog
SaveFileDialog Methods
Using the SaveFileDialog Control
The FontDialog Control
The Properties of FontDialog
The Methods of FontDialog
Using the FontDialog Control
The ColorDialog Control
The Properties of ColorDialog
Using the ColorDialog Control
The PrintDialog Control
The Properties of PrintDialog
Using the PrintDialog Control
The PrintDocument Class
The Properties of the PrintDocument Class
Printing a Document
The FolderBrowserDialog Control
The Properties of FolderBrowserDialog
Using the FolderBrowserDialog Control
Summary
Creating Menus
Understanding Menu Features
Images
Access Keys
Shortcut Keys
Check Marks
The Properties Window
Creating Menus
Designing the Menus
Adding Toolbars and Controls
Coding Menus
Coding the View Menu and Toolbars
Testing Your Code
Context Menus
Creating Context Menus
Enabling and Disabling Menu Items and Toolbar Buttons
Summary
Debugging And Error Handling
Major Error Types
Syntax Errors
Execution Errors
Logic Errors
Debugging
Creating a Sample Project
Setting Breakpoints
Debugging Using the Watch Window and QuickWatch Dialog Box
Debugging with the Autos Window
Debugging with the Locals Window
Error Handling
Using Structured Error Handling
Summary
Building Objects
Understanding Objects
Encapsulation
Methods and Properties
Events
Visibility
What Is a Class?
Building Classes
Reusability
Designing an Object
State
Behavior
Storing State
Real Properties
Read/Write Properties
Auto-Implemented Properties
The IsMoving Method
Constructors
Inheritance
Adding New Methods and Properties
Adding a GetPowerToWeightRatio Method
Changing Defaults
Polymorphism: Scary Word, Simple Concept
Overriding More Methods
Inheriting from the Object Class
Objects and Structures
The Framework Classes
Namespaces
The Imports Statement
Creating Your Own Namespace
Inheritance in the .NET Framework
Summary
Advanced Object-Oriented Techniques
Building a Favorites Viewer
Internet Shortcuts and Favorites
Using Classes
Scanning Favorites
Viewing Favorites
An Alternative Favorite Viewer
Building a Favorites Tray
Displaying Favorites
Using Shared Properties and Methods
Using Shared Properties
Using Shared Methods
Understanding Object-Oriented Programming and Memory Management
Garbage Collection
Releasing Resources
Defragmentation and Compaction
Summary
Building Class Libraries
Understanding Class Libraries
Creating a Class Library
Building a Class Library for Favorites Viewer
A Multitiered Application
Using Strong Names
Signing Assemblies
Assembly Versions
Registering Assemblies
Gacutil Utility
Why Is My Assembly Not Visible in the References Dialog?
Designing Class Libraries
Using Third-Party Class Libraries
Viewing Classes with the Object Browser
Summary
Creating Windows Forms User Controls
Windows Forms Controls
Creating and Testing a User Control
Exposing Properties from User Controls
Adding Properties
Exposing Methods from User Controls
Exposing Events from User Controls
Design Time or Runtime
Creating a Command Link Control
Building the Command Link Control
Using the Command Link Control
Summary
Accessing Data Using Structured Query Language
What You Need to Complete This Chapter's Exercises
What Is a Database?
Database Tables
Primary and Foreign Keys
Understanding Primary Keys
Understanding Foreign Keys
Queries
Understanding Basic SQL Syntax
Using SELECT Statement
Using the JOIN Statement
Using the UPDATE Statement
Using the DELETE Statement
Using the INSERT Statement
Using the SQL Comment
Executing Queries in SQL Server
Summary
Database Programming With Sql Server And Ado.Net
ADO.NET
ADO.NET Data Namespaces
The SqlConnection Class
Working with the Connection String Parameters
Opening and Closing the Connection
The SqlCommand Class
The Connection Property
The CommandText Property
The Parameters Collection
The ExecuteNonQuery Method
The SqlDataAdapter Class
The SelectCommand Property
Setting SelectCommand to SQL Text
Setting SelectCommand to a Stored Procedure
Using Command Builders to Create the Other Commands
The Fill Method
The DataSet Class
DataView
The Sort Property
The RowFilter Property
The Find Method
The ADO.NET Classes in Action
Data Binding
BindingContext and CurrencyManager
Binding Controls
Binding Examples
Summary
Dynamic Data Website
Creating a Dynamic Data Entities Website
Customizing the Design of a Dynamic Data Website
Page Templates
Entity Templates
Field Templates
Filter Templates
Summary
ASP.NET
Thin-Client Architecture
Web Forms versus Windows Forms
Windows Forms Advantages
Web Forms Advantages
Web Applications: The Basic Pieces
Web Servers
Browsers
HyperText Markup Language
JavaScript
Cascading Style Sheets
Active Server Pages
Benefits of ASP.NET Web Pages
Special Website Files
Global.asax
Web.config
Development
Controls: The Toolbox
Building Websites
Creating a Web Form for Client- and Server-Side Processing
Website Locations with VS
599 Performing Data Entry and Validation
Site Layout, Themes, and Navigation
Using the GridView to Build a Data-Driven Web Form
Summary
Deploying Your Application
What Is Deployment?
ClickOnce Deployment
XCOPY Deployment
Creating a Visual Studio
Setup Application
Customize the User Interface
Deploying Diff erent Solutions
Private Assemblies
Shared Assemblies
Deploying Desktop Applications
Deploying Web Applications
Deploying XML Web Services
Useful Tools
Summary
Windows 8 APPS
Windows 8 Application Design Principles
Using Touch
Application Commands
Windows 8 Controls
Creating your First Windows 8 App
Application Layout
Application Views
Screen Sizes and Orientation
Summary
Exercise Solutions
Where To Now?
Index