没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
ptg
From the Library of Wow! eBook
ptg
800 East 96th Street, Indianapolis, Indiana, 46240 USA
James Foxall
SamsTeach Yourself
24
in
Hours
Visual
Basic 2010
From the Library of Wow! eBook
ptg
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.
p. cm.
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
2010011612
Printed in the United States on America
First Printing May 2010
Trademarks
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
mark.
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.
Bulk Sales
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
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
Indexer
Ken Johnson
Proofreader
Leslie Joseph
Technical Editor
J. Boyd Nolan
Publishing
Coordinator
Cindy Teeters
Multimedia
Developer
Dan Scherf
Designer
Gary Adair
Composition
Mark Shirar
From the Library of Wow! eBook
ptg
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
From the Library of Wow! eBook
ptg
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
Starting Visual Basic 2010 ....................................................................................6
Creating a New Project ..........................................................................................7
Understanding the Visual Studio 2010 Environment ........................................10
Changing the Characteristics of Objects ............................................................11
Adding Controls to a Form..................................................................................16
Designing an Interface ........................................................................................17
Writing the Code Behind an Interface ................................................................21
Running a Project ................................................................................................25
HOUR 2:
Navigating Visual Basic 2010 29
Using the Visual Basic 2010 Start Page ..............................................................30
Navigating and Customizing the Visual Basic Environment ............................32
Working with Toolbars ........................................................................................37
Adding Controls to a Form Using the Toolbox ..................................................38
Setting Object Properties Using the Properties Window ....................................40
Managing Projects ..............................................................................................45
A Quick-and-Dirty Programming Primer ..........................................................51
Getting Help ........................................................................................................53
HOUR 3:
Understanding Objects and Collections 57
Understanding Objects ........................................................................................58
Understanding Properties ....................................................................................58
Understanding Methods ......................................................................................65
Building a Simple Object Example Project ........................................................67
Understanding Collections ..................................................................................72
Using the Object Browser ....................................................................................75
From the Library of Wow! eBook
剩余527页未读,继续阅读
fromwiz
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页