Visual Basic 2012 How to Program (6th Edition)
Visual Basic 2012 How to Program (6th Edition)
com
https://www.yakibooki.com/download/visual-basic-2012-how-to-program-6th-edition/
This Book is Available on YakiBooki.com
This Book is Available on YakiBooki.com
To receive updates on Deitel publications, Resource Centers, training courses, partner offers and
more, please register for the free Deitel ® Buzz Online e-mail newsletter at:
www.deitel.com/newsletter/subscribe.html
and join the Deitel communities on Twitter®
@deitel
Facebook®
facebook.com/DeitelFan
and Google+
gplus.to/deitel
To communicate with the authors, send e-mail to:
deitel@deitel.com
For information on government and corporate Dive-Into® Series on-site seminars offered by Deitel
& Associates, Inc. worldwide, visit:
www.deitel.com/training/
or write to
deitel@deitel.com
For continuing updates on Prentice Hall/Deitel publications visit:
www.deitel.com
www.pearsonhighered.com/deitel/
Visit the Deitel Resource Centers that will help you master programming languages, software devel-
opment, Android and iPhone/iPad app development, and Internet- and web-related topics:
www.deitel.com/ResourceCenters.html
This Book is Available on YakiBooki.com
Paul Deitel
Deitel & Associates, Inc.
Abbey Deitel
Deitel & Associates, Inc.
Harvey Deitel
Deitel & Associates, Inc.
This Book is Available on YakiBooki.com
Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear
on page vi.
The authors and publisher of this book have used their best efforts in preparing this book. These efforts include the
development, research, and testing of the theories and programs to determine their effectiveness. The authors and pub-
lisher make no warranty of any kind, expressed or implied, with regard to these programs or to the documentation
contained in this book. The authors and publisher shall not be liable in any event for incidental or consequential dam-
ages in connection with, or arising out of, the furnishing, performance, or use of these programs.
Copyright © 2014, 2011, 2009 Pearson Education, Inc., publishing as Prentice Hall. All rights reserved. Manufac-
tured in the United States of America. This publication is protected by Copyright, and permission should be obtained
from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or
by any means, electronic, mechanical, photocopying, recording, or likewise. To obtain permission(s) to use material
from this work, please submit a written request to Pearson Education, Inc., One Lake Street, Upper Saddle River, New
Jersey 07458, or you may fax your request to 201-236-3290.
Many of the designations by manufacturers and sellers to distinguish their products are claimed as trademarks. Where
those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been
printed in initial caps or all caps.
Microsoft and/or its respective suppliers make no representations about the suitability of the information contained in
the documents and related graphics published as part of the services for any purpose. All such documents and related
graphics are provided “as is” without warranty of any kind. Microsoft and/or its respective suppliers hereby disclaim
all warranties and conditions with regard to this information, including all warranties and conditions of merchant-
ability, whether express, implied or statutory, fitness for a particular purpose, title and non-infringement. In no event
shall Microsoft and/or its respective suppliers be liable for any special, indirect or consequential damages or any dam-
ages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious
action, arising out of or in connection with the use or performance of information available from the services.
The documents and related graphics contained herein could include technical inaccuracies or typographical errors.
Changes are periodically added to the information herein. Microsoft and/or its respective suppliers may make improve-
ments and/or changes in the product(s) and/or the program(s) described herein at any time. Partial screen shots may
be viewed in full within the software version specified.
10 9 8 7 6 5 4 3 2 1
ISBN-10: 0-13-340695-4
ISBN-13: 978-0-13-340695-5
This Book is Available on YakiBooki.com
Trademarks
DEITEL, the double-thumbs-up bug and DIVE INTO are registered trademarks of Deitel and Associates,
Inc.
Microsoft® and Windows® are registered trademarks of the Microsoft Corporation in the U.S.A. and
other countries. This book is not sponsored or endorsed by or affiliated with the Microsoft Corporation.
UNIX is a registered trademark of The Open Group.
Throughout this book, trademarks are used. Rather than put a trademark symbol in every occurrence of
a trademarked name, we state that we are using the names in an editorial fashion only and to the benefit
of the trademark owner, with no intention of infringement of the trademark.
vbhtp6TOCbrief.fm Page vii Monday, February 11, 2013 9:40 AM
This Book is Available on YakiBooki.com
Brief Contents
Chapters 16–31 are PDF documents posted online at the book’s Companion Website
(located at www.pearsonhighered.com/deitel/).
Preface xix
Before You Begin xxix
1 Introduction to Computers, the Internet and
Visual Basic 1
2 Dive Into® Visual Studio Express 2012 for
Windows Desktop 26
3 Introduction to Visual Basic Programming 59
4 Introduction to Problem Solving and
Control Statements 101
5 Problem Solving and Control Statements:
Part 2 146
6 Methods 188
7 Arrays 238
8 Files 286
9 Object-Oriented Programming:
Classes and Objects 312
10 Object-Oriented Programming:
Inheritance and Polymorphism 352
11 Introduction to LINQ 382
12 Databases and LINQ 399
13 Web App Development with ASP.NET 446
14 Windows Forms GUI: A Deeper Look 498
15 Graphics and Multimedia 554
This Book is Available on YakiBooki.com
Contents
Chapters 16–31 are PDF documents posted online at the book’s Companion Website
(located at www.pearsonhighered.com/deitel/).
Preface xvii
Before You Begin xxxi
1 Introduction to Computers, the Internet and
Visual Basic 1
1.1 Introduction 2
1.2 Hardware and Moore’s Law 2
1.3 Data Hierarchy 3
1.4 Computer Organization 5
1.5 Machine Languages, Assembly Languages and High-Level Languages 7
1.6 Object Technology 8
1.7 Internet and World Wide Web 10
1.8 Visual Basic 11
1.8.1 Object-Oriented Programming 12
1.8.2 Event-Driven Programming 12
1.8.3 Visual Programming 12
1.8.4 Internet and Web Programming 13
1.8.5 Other Key Contemporary Programming Languages 13
1.9 Microsoft’s .NET 14
1.9.1 .NET Framework 14
1.9.2 Common Language Runtime 14
1.10 Microsoft’s Windows® Operating System 14
1.11 Windows Phone 8 for Smartphones 16
1.11.1 Selling Your Apps in the Windows Phone Marketplace 16
1.11.2 Free vs. Paid Apps 16
1.11.3 Testing Your Windows Phone Apps 17
1.12 Windows Azure™ and Cloud Computing 17
1.13 Visual Studio Integrated Development Environment 17
1.14 Test-Driving the Visual Basic Advanced Painter App in Visual Studio 2012 18