Sams Teach Yourself Visual Basic 2010 in 24 Hours, IT books
[ Pobierz całość w formacie PDF ]
James Foxall
Sams
Teach Yourself
Visual
Basic 2010
24
in
Hours
800 East 96th Street, Indianapolis, Indiana, 46240 USA
Sams Teach Yourself Visual Basic 2010 in 24 Hours Complete Starter Kit
Copyright © 2010 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or
transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without
written permission from the publisher. No patent liability is assumed with respect to the use of
the information contained herein. Although every precaution has been taken in the preparation of
this book, the publisher and author assume no responsibility for errors or omissions. Nor is any
liability assumed for damages resulting from the use of the information contained herein.
ISBN-13: 978-0-672-33113-8
ISBN-10: 0-672-33113-6
Library of Congress Cataloging-in-Publication Data:
Foxall, James D.
Sams teach yourself Visual Basic 2010 in 24 hours complete : starter kit / James Foxall.
Editor-in-Chief
Karen Gettman
Executive Editor
Neil Rowe
Development Editor
Mark Renfrow
Managing Editor
Patrick Kanouse
Project Editor
Mandie Frank
Copy Editor
Margo Catts
Includes index.
ISBN 978-0-672-33113-8
1. Microsoft Visual BASIC. 2. BASIC (Computer program language) 3. Microsoft .NET. I. Title.
QA76.73.B3F69529 2010
006.7'882--dc22
Indexer
Ken Johnson
Proofreader
Leslie Joseph
2010011612
Technical Editor
J. Boyd Nolan
Printed in the United States on America
First Printing May 2010
Publishing
Coordinator
Cindy Teeters
All terms mentioned in this book that are known to be trademarks or service marks have been
appropriately capitalized. Sams Publishing cannot attest to the accuracy of this information. Use
of a term in this book should not be regarded as affecting the validity of any trademark or service
Multimedia
Developer
Dan Scherf
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no
warranty or fitness is implied. The information provided is on an “as is” basis. The author and the
publisher shall have neither liability nor responsibility to any person or entity with respect to any
loss or damages arising from the information contained in this book or from the use of the DVD
or programs accompanying it.
Designer
Gary Adair
Composition
Mark Shirar
Sams Publishing offers excellent discounts on this book when ordered in quantity for bulk
purchases or special sales. For more information, please contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside of the U.S., please contact
International Sales
international@pearsoned.com
Contents at a Glance
Introduction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
PART I
The Visual Basic 2010 Environment
HOUR 1
Jumping in with Both Feet: A Visual Basic 2010 Programming Tour ......5
2
Navigating Visual Basic 2010..................................................................29
3
Understanding Objects and Collections ..................................................57
4
Understanding Events ..............................................................................79
PART II
Building a User Interface
5
Building Forms: The Basics ......................................................................95
6
Building Forms: Advanced Techniques..................................................117
7
Working with Traditional Controls........................................................145
8
Using Advanced Controls.......................................................................173
9
Adding Menus and Toolbars to Forms ..................................................195
PART III
Making Things Happen—Programming
10
Creating and Calling Code Procedures .................................................217
11
Using Constants, Data Types, Variables, and Arrays............................237
12
Performing Arithmetic, String Manipulation, and Date/Time
Adjustments............................................................................................269
13
Making Decisions in Visual Basic Code ................................................293
14
Looping for Efficiency ............................................................................309
15
Debugging Your Code ............................................................................323
16
Designing Objects Using Classes ...........................................................347
17
Interacting with Users ............................................................................367
18
Working with Graphics ..........................................................................389
PART IV
Working with Data
19
Performing File Operations....................................................................409
20
Working with the Registry and Text Files ..............................................427
21
Working with a Database ......................................................................451
22
Controlling Other Applications Using Automation..............................469
PART V
Deploying Solutions and Beyond
23
Deploying Applications .........................................................................481
24
The 10,000-Foot View.............................................................................491
Index
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
499
Table of Contents
Introduction
1
PART I:
The Visual Basic 2010 Environment
HOUR 1:
Jumping in with Both Feet: A Visual Basic 2010 Programming Tour 5
HOUR 2:
Navigating Visual Basic 2010 29
HOUR 3:
Understanding Objects and Collections 57
[ Pobierz całość w formacie PDF ]