Visual Basic 2010 Step by Step eBook.pdf
(
13641 KB
)
Pobierz
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2010 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.
Library of Congress Control Number: 2010924441
Printed and bound in the United States of America.
1 2 3 4 5 6 7 8 9 QWT 5 4 3 2 1 0
Distributed in Canada by H.B. Fenn and Company Ltd.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For further information about
international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly
at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to mspinput@microsoft.com.
Microsoft, Microsoft Press, Access, ActiveX, Arc, Azure, DataTips, Excel, Expression, Halo, IntelliSense, Internet Explorer,
MS, MSDN, MS-DOS, PowerPoint, SharePoint, Silverlight, SQL Server, Visual Basic, Visual C#, Visual C++, Visual
InterDev, Visual Studio, Windows, Windows Azure, Windows Server, Windows Vista and Zoo Tycoon are either registered
trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company
names mentioned herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted
herein are fictitious. No association with any real company, organization, product, domain name, e-mail 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, 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 Editor:
Ben Ryan
Developmental Editor:
Devon Musgrave
Project Editor:
Valerie Woolley
Editorial Production:
Christian Holdener, S4Carlisle Publishing Services
Technical Reviewer:
Technical Review services provided by Content Master, a member of CM Group, Ltd.
Cover:
Tom Draper Design
Body Part No. X16-88509
For Henry
Contents at a Glance
Part I
Getting Started with Microsoft Visual Basic 2010
Exploring the Visual Studio Integrated Development
Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Writing Your First Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Working with Toolbox Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Working with Menus, Toolbars, and Dialog Boxes . . . . . . . . . . . 97
1
2
3
4
Part II
Programming Fundamentals
Visual Basic Variables and Formulas,
and the .NET Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Using Decision Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Using Loops and Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Debugging Visual Basic Programs . . . . . . . . . . . . . . . . . . . . . . . . 209
Trapping Errors by Using Structured Error Handling . . . . . . . . . 227
Creating Modules and Procedures . . . . . . . . . . . . . . . . . . . . . . . . 247
Using Arrays to Manage Numeric and String Data . . . . . . . . . . 273
Working with Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Exploring Text Files and String Processing . . . . . . . . . . . . . . . . . 313
5
6
7
8
9
10
11
12
13
Part III
Designing the User Interface
351
375
393
415
14
Managing Windows Forms and Controls at Run Time . . . . . . .
15
Adding Graphics and Animation Effects . . . . . . . . . . . . . . . . . . .
16
Inheriting Forms and Creating Base Classes . . . . . . . . . . . . . . . .
17
Working with Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Part IV
Database and Web Programming
Getting Started with ADO .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
Data Presentation Using the
DataGridView
Control . . . . . . . . . 467
Creating Web Sites and Web Pages by Using Visual
Web Developer and ASP .NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
v
18
19
20
Plik z chomika:
gallup
Inne pliki z tego folderu:
Visual Basic® 2012 Programmer's Reference.pdf
(24343 KB)
Basics of Ethical hacking – Manthan M. Desai.pdf
(11726 KB)
A Quick Look at Biochemistry Lipid Metabolism.pdf
(6354 KB)
Visual Basic 2010.pdf
(11890 KB)
Illustrated TCP IP.pdf
(6287 KB)
Inne foldery tego chomika:
Apki
Zgłoś jeśli
naruszono regulamin