Microsoft Visual Basic
2013 Step by Step
Michael Halvorson
Published with the authorization of Microsoft Corporation by:
O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, California 95472
Copyright © 2013 by Michael Halvorson
All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any
means without the written permission of the publisher.
ISBN: 978-0-7356-6704-4
1 2 3 4 5 6 7 8 9 LSI 8 7 6 5 4 3
Printed and bound in the United States of America.
Microsoft Press books are available through booksellers and distributors worldwide. If you need support related
to this book, email Microsoft Press Book Support at mspinput@microsoft.com. Please tell us what you think of
this book at http://www.microsoft.com/learning/booksurvey.
Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/
Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of
their respective owners.
The example companies, organizations, products, domain names, email addresses, logos, people, places, and
events depicted herein are ctitious. No association with any real company, organization, product, domain name,
email address, logo, person, place, or event is intended or should be inferred.
This book expresses the author’s views and opinions. The information contained in this book is provided without
any express, statutory, or implied warranties. Neither the authors, O’Reilly Media, Inc., Microsoft Corporation,
nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly
or indirectly by this book.
Acquisitions and Developmental Editor: Russell Jones
Production Editor: Kristen Brown
Editorial Production: Zyg Group, LLC
Technical Reviewer: Tim Patrick
Copyeditor: Richard Carey
Indexer: Bob Pfahler
Cover Design: Twist Creative • Seattle
Cover Composition: Randy Comer
Illustrator: Rebecca Demarest
Contents at a glance
Introduction xvii
PART I INTRODUCTION TO VISUAL STUDIO DEVELOPMENT
CHAPTER 1 Visual Basic 2013 development opportunities
and the Windows Store 3
CHAPTER 2 The Visual Studio Integrated Development Environment 17
CHAPTER 3
Windows desktop apps: A walkthrough
using Windows Forms 79
PART II DESIGNING THE USER INTERFACE
CHAPTER 5 Working with Windows Store app controls 111
CHAPTER 6
CHAPTER 7 XAML markup step by step 191
CHAPTER 8 Using XAML styles 215
CHAPTER 9 Exploring Windows 8.1 design features:
CHAPTER 10 Creating console applications 267
PART III VISUAL BASIC PROGRAMMING TECHNIQUES
CHAPTER 11 Mastering data types, operators, and string processing 291
CHAPTER 12
CHAPTER 13 Trapping errors by using structured error handling 375
Using arrays, collections, and generics to manage data 397
CHAPTER 15
CHAPTER 16
PART IV DATABASE AND WEB PROGRAMMING
CHAPTER 17
CHAPTER 18 Data access for Windows Store apps 515
CHAPTER 19
评论30
最新资源