Visual Basic 2012 Programmer s Reference 1st Edition Rod Stephens download
Visual Basic 2012 Programmer s Reference 1st Edition Rod Stephens download
https://ebookname.com/product/visual-basic-2012-programmer-s-
reference-1st-edition-rod-stephens/
https://ebookname.com/product/visual-basic-2005-programmer-s-
reference-1st-edition-rod-stephens/
https://ebookname.com/product/visual-basic-2010-programmer-s-
reference-1st-edition-rod-stephens/
https://ebookname.com/product/c-5-0-programmer-s-reference-1st-
edition-rod-stephens/
https://ebookname.com/product/introduction-to-functional-
equations-1st-edition-prasanna-k-sahoo/
Hydrophobic and Superhydrophobic Organic Inorganic Nano
Hybrids First Edition Ha
https://ebookname.com/product/hydrophobic-and-superhydrophobic-
organic-inorganic-nano-hybrids-first-edition-ha/
https://ebookname.com/product/dark-borders-jonathan-auerbach/
https://ebookname.com/product/options-futures-and-other-
derivatives-solution-manual-7th-ed-7th-edition-john-c-hull/
https://ebookname.com/product/phoebe-and-her-unicorn-phoebe-and-
her-unicorn-series-book-1-19th-edition-simpson/
https://ebookname.com/product/flute-for-dummies-karen-evans-
moratz/
Investment analysis and portfolio management 3rd
Edition Prasanna Chandra
https://ebookname.com/product/investment-analysis-and-portfolio-
management-3rd-edition-prasanna-chandra/
VISUAL BASIC® 2012
PROGRAMMER’S REFERENCE
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
PART I IDE
CHAPTER 1 Introduction to the IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
CHAPTER 2 Menus, Toolbars, and Windows. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
CHAPTER 3 Windows Forms Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
CHAPTER 4 WPF Designer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
CHAPTER 5 Visual Basic Code Editor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
CHAPTER 6 Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
PART V APPENDICES
APPENDIX A Useful Control Properties, Methods, and Events . . . . . . . . . . . . . . . . . . . 611
APPENDIX B Variable Declarations and Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
APPENDIX C Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
APPENDIX D Subroutine and Function Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . 637
APPENDIX E Control Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
APPENDIX F Error Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
APPENDIX G Windows Forms Controls and Components . . . . . . . . . . . . . . . . . . . . . . 649
APPENDIX H WPF Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
APPENDIX I Visual Basic Power Packs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
APPENDIX J Form Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
APPENDIX K Classes and Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681
APPENDIX L LINQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685
APPENDIX M Generics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 695
APPENDIX N Graphics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699
APPENDIX O Useful Exception Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 711
APPENDIX P Date and Time Format Specifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715
APPENDIX Q Other Format Specifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719
APPENDIX R The Application Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 725
APPENDIX S The My Namespace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729
APPENDIX T Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747
APPENDIX U Filesystem Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
APPENDIX V Visual Studio Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .771
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773
Visual Basic® 2012
PROGRAMMER’S REFERENCE
Rod Stephens
ISBN: 978-1-118-31407-4
ISBN: 978-1-118-33208-5 (ebk)
ISBN: 978-1-118-33535-2 (ebk)
ISBN: 978-1-118-43938-8 (ebk)
10 9 8 7 6 5 4 3 2 1
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108
of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization
through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers,
MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the
Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011,
fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with
respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including
without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro-
motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold
with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services.
If professional assistance is required, the services of a competent professional person should be sought. Neither the pub-
lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to
in this work as a citation and/or a potential source of further information does not mean that the author or the publisher
endorses the information the organization or Web site may provide or recommendations it may make. Further, readers
should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was
written and when it is read.
For general information on our other products and services please contact our Customer Care Department within the
United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.
Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with stan-
dard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such
as a CD or DVD that is not included in the version you purchased, you may download this material at
http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.
Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are
trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affi liates, in the United States and other coun-
tries, and may not be used without written permission. Visual Basic is a registered trademark of Microsoft Corporation.
All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any
product or vendor mentioned in this book.
ABOUT THE AUTHOR
BRIAN HOCHGURTEL has been doing .NET development for over ten years, and actually started his
.NET experience with Rod Stephens when they wrote the Wiley book Visual Basic .NET and XML
together in 2002. Currently Brian works as a SharePoint Developer and Administrator for a large
defense contractor in Colorado.
CREDITS
THANKS TO BOB ELLIOTT, Adaobi Obi Tulton, Sydney Jones, Rayna Erlick, Kim Cofer, Daniel
Scribner, and all of the others who worked so hard to make this book possible.
Thanks also to Brian Hochgurtel for giving me another perspective and the benefit of his valuable
experience.
CONTENTS
INTRODUCTION xxvii
PART I: IDE
IDE Tools 15
Menus 16
File 16
Edit 18
View 19
Project 20
Build 24
Debug 24
Data 24
Format 25
Tools 25
Test 28
Window 28
Help 29
Toolbars 30
Secondary Windows 30
Toolbox 32
Properties Window 33
Summary 33
CONTENTS
Editing Code 55
Margin Icons 56
Outlining 58
Tooltips 59
IntelliSense 60
Code Coloring and Highlighting 61
Code Snippets 63
Architectural Tools 64
Rename 64
Go To Definition 64
Go To Type Definition 64
Highlight References 65
Find All References 65
Generate From Usage 65
xii
CONTENTS
Controls 81
Controls Overview 82
Choosing Controls 86
Containing and Arranging Controls 87
Making Selections 89
Entering Data 90
Displaying Data 90
Providing Feedback 91
Initiating Action 92
Displaying Graphics 94
Displaying Dialog Boxes 94
Third-Party Controls 95
Summary 96
CHAPTER 8: USING WINDOWS FORMS CONTROLS 97
xiii
CONTENTS
xiv
CONTENTS
xv
CONTENTS
Variables 203
Data Types 204
Type Characters 207
Data Type Conversion 210
Narrowing Conversions 210
Data Type Parsing Methods 212
Widening Conversions 213
The Convert Class 213
ToString 213
Variable Declarations 214
Attribute_List 214
Accessibility 215
Shared 216
Shadows 216
ReadOnly 219
Dim 219
WithEvents 220
Name 221
Bounds_List 222
New 223
As Type and Inferred Types 224
Initialization_Expression 225
Initializing Collections 228
Multiple Variable Declarations 229
Option Explicit and Option Strict 230
Scope 233
Block Scope 233
Procedure Scope 234
Module Scope 234
Namespace Scope 235
Restricting Scope 235
Parameter Declarations 236
Property Procedures 238
Enumerated Data Types 240
Anonymous Types 243
Nullable Types 244
Constants 244
Accessibility 245
As Type 245
Initialization_Expression 246
xvi
CONTENTS
Delegates 246
Naming Conventions 248
Summary 249
CHAPTER 15: OPERATORS 251
xvii
CONTENTS
xviii
CONTENTS
xix
CONTENTS
xx
CONTENTS
Attribute_list 450
Partial 451
Accessibility 452
Shadows 453
Inheritance 454
Implements interface 456
Structures 456
Structures Cannot Inherit 457
Structures Are Value Types 457
Memory Required 457
Heap and Stack Performance 459
Object Assignment 459
Parameter Passing 460
Boxing and Unboxing 461
Class Instantiation Details 461
Structure Instantiation Details 464
Garbage Collection 466
Finalize 467
Dispose 469
Constants, Properties, and Methods 471
Events 473
Declaring Events 473
Raising Events 474
Catching Events 475
Shared Variables 477
Shared Methods 477
Summary 479
xxi
CONTENTS
xxii
CONTENTS
xxiii
Another Random Document on
Scribd Without Any Related Topics
The Project Gutenberg eBook of Dernières
Années de la Cour de Lunéville
This ebook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this ebook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.
Language: French
DERNIÈRES ANNÉES
DE LA
COUR DE LUNÉVILLE
DU MÊME AUTEUR
La Marquise de Boufflers.
PARIS.—TYP. PLON-NOURRIT ET Cie, 8, RUE GARANCIÈRE.—8734.
DERNIÈRES ANNÉES
DE LA
COUR DE LUNÉVILLE
Mme DE BOUFFLERS
SES ENFANTS ET SES AMIS
PAR
GASTON MAUGRAS
Huitième édition
PARIS
LIBRAIRIE PLON
PLON-NOURRIT et Cie, IMPRIMEURS-ÉDITEURS
8, RUE GARANCIÈRE—6e
1906
Tous droits de reproduction et de traduction réservés pour tous
pays.
Published 6 June 1906.
Privilege of copyright in the United States reserved
under the Act approved March 3d 1905
by Plon-Nourrit et Cie.
AVERTISSEMENT
Leslie, J.
Chanson
Chanson
Pour un instant,
On sort du néant,
Et dès qu'on vit, on est las de vivre;
On hait son sort
Et l'on craint la mort
Sans estimer la vie.
Dieu tout-puissant,
Qu'on dit bienfaisant,
Tous les mortels pleurent de vos présents;
Et soit qu'ils meurent
Ou qu'ils demeurent
Tous sont mécontents.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com