Wiley
Wiley.com
Print this page Share

Visual Basic 2008 Programmer's Reference

ISBN: 978-0-470-18262-8
1248 pages
February 2008
Visual Basic 2008 Programmer
Providing programmers and developers of all skill levels with a comprehensive tutorial and reference to Visual Basic (VB) 2008, Microsoft MVP Rod Stephens presents a broad, solid understanding of essential topics on the latest version of VB. He explains the forms, controls, and other objects that VB furnishes for building applications in a modern windows environment. Plus, he examines the powerful development environment that makes VB such a productive language, and he delves into the VB language itself to show you how to use it to perform an array of important development tasks.

Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.

See More

Acknowledgments vi

Introduction xxvii

Part I: IDE 1

Chapter 1: Introduction to the IDE 3

Chapter 2: Menus, Toolbars, and Windows 15

Chapter 3: Customization 43

Chapter 4: Windows Form Designer 49

Chapter 5: WPF Designer 61

Chapter 6: Visual Basic Code Editor 71

Chapter 7: Debugging 87

Part II: Getting Started 101

Chapter 8: Selecting Windows Forms Controls 103

Chapter 9: Using Windows Forms Controls 121

Chapter 10: Windows Forms 149

Chapter 11: Selecting WPF Controls 175

Chapter 12: Using WPF Controls 187

Chapter 13: WPF Windows 223

Chapter 14: Program and Module Structure 237

Chapter 15: Data Types, Variables, and Constants 261

Chapter 16: Operators 307

Chapter 17: Subroutines and Functions 327

Chapter 18: Program Control Statements 353

Chapter 19: Error Handling 377

Chapter 20: Database Controls and Objects 401

Chapter 21: LINQ 457

Chapter 22: Custom Controls 493

Chapter 23: Drag and Drop, and the Clipboard 519

Chapter 24: UAC Security 537

Part III: Object-Oriented Programming 545

Chapter 25: OOP Concepts 547

Chapter 26: Classes and Structures 563

Chapter 27: Namespaces 605

Chapter 28: Collection Classes 619

Chapter 29: Generics 647

Part IV: Graphics 659

Chapter 30: Drawing Basics 661

Chapter 31: Brushes, Pens, and Paths 697

Chapter 32: Text 727

Chapter 33: Image Processing 745

Chapter 34: Printing 761

Chapter 35: Reporting 781

Part V: Interacting with the Environment 803

Chapter 36: Configuration and Resources 805

Chapter 37: Streams 837

Chapter 38: File-System Objects 849

Chapter 39: Windows Communication Foundation 873

Chapter 40: Useful Namespaces 885

Part VI: Appendices 909

Appendix A: Useful Control Properties, Methods, and Events 911

Appendix B: Variable Declarations and Data Types 923

Appendix C: Operators 931

Appendix D: Subroutine and Function Declarations 939

Appendix E: Control Statements 943

Appendix F: Error Handling 949

Appendix G: Windows Forms Controls and Components 951

Appendix H: WPF Controls 1035

Appendix I: Visual Basic Power Packs 1043

Appendix J: Form Objects 1047

Appendix K: Classes and Structures 1063

Appendix L: LINQ 1067

Appendix M: Generics 1077

Appendix N: Graphics 1081

Appendix O: Useful Exception Classes 1095

Appendix P: Date and Time Format Specifiers 1099

Appendix Q: Other Format Specifiers 1103

Appendix R: The Application Class 1109

Appendix S: The My Namespace 1113

Appendix T: Streams 1131

Appendix U: File-System Classes 1139

Appendix V: Index of Examples 1157

Index 1177

See More
Rod Stephens started out as a mathematician, but while studying at MIT, discovered the joys of programming and has been programming professionally ever since. During his career, he has worked on an eclectic assortment of applications in such fields as telephone switching, billing, repair dispatching, tax processing, wastewater treatment, concert ticket sales, cartography, and training for professional football players.
Rod is a Microsoft Visual Basic Most Valuable Professional (MVP) and ITT adjunct instructor. He has written 18 books that have been translated into half a dozen different languages, and more than 200 magazine articles covering Visual Basic, Visual Basic for Applications, Delphi, and Java. He is currently a regular contributor to DevX ( www.DevX.com ).
Rod ’ s popular VB Helper web site www.vb-helper.com receives several million hits per month and contains thousands of pages of tips, tricks, and example code for Visual Basic programmers, as well as example code for this book.
See More
Rod Stephens' VB HelperAuthor Rod Stephens' site with tips, tricks, & example programs for Visual Basic developers
See More
Download TitleSizeDownload
Appendix A code 14.60 KB Click to Download
Appendix G code 1,021.86 KB Click to Download
Appendix K code 14.36 KB Click to Download
Appendix M code 15.38 KB Click to Download
Chapter 2 code 14.62 KB Click to Download
Chapter 6 code 69.46 KB Click to Download
Chapter 7 code 29.43 KB Click to Download
Chapter 8 code 151.42 KB Click to Download
Chapter 9 code 290.26 KB Click to Download
Chapter 10 code 425.77 KB Click to Download
Chapter 11 code 4.30 MB Click to Download
Chapter 12 code 343.21 KB Click to Download
Chapter 13 code 92.11 KB Click to Download
Chapter 14 code 106.28 KB Click to Download
Chapter 15 code 114.88 KB Click to Download
Chapter 16 code 60.44 KB Click to Download
Chapter 17 code 131.64 KB Click to Download
Chapter 18 code 44.20 KB Click to Download
Chapter 19 code 165.75 KB Click to Download
Chapter 20 code 2.01 MB Click to Download
Chapter 21 code 308.95 KB Click to Download
Chapter 22 code 213.87 KB Click to Download
Chapter 23 code 178.93 KB Click to Download
Chapter 24 code 77.37 KB Click to Download
Chapter 26 code 71.83 KB Click to Download
Chapter 27 code 72.10 KB Click to Download
Chapter 28 code 207.84 KB Click to Download
Chapter 29 code 139.32 KB Click to Download
Chapter 30 code 274.44 KB Click to Download
Chapter 31 code 264.96 KB Click to Download
Chapter 32 code 159.74 KB Click to Download
Chapter 33 code 463.11 KB Click to Download
Chapter 34 code 131.16 KB Click to Download
Chapter 35 code 774.77 KB Click to Download
Chapter 36 code 524.94 KB Click to Download
Chapter 37 code 86.43 KB Click to Download
Chapter 38 code 118.57 KB Click to Download
Chapter 39 code 333.48 KB Click to Download
Chapter 40 code 496.28 KB Click to Download
Alll sample code from book 14.14 MB Click to Download
See More

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
26 Error in Code
Option Explicit On
Option Explicit Off

The code must be :
Option Explicit On
Option Infer Off
08/09/08
394 Error in Code
grey code area contains:
DivideError1:
On Error GoTo -1
On Error Resume Next
i = 1 / j
Exit Sub

but to work as described in text, this should be:
DivideError1:
On Error GoTo -1
On Error Resume Next
i = 1 / j

There should be no Exit sub.
3/9/11
912 Error in Reference
The DisplayRectangle entry incorrectly refers to Label3 in Figure A-1, but there is no Label3 in that figure. Please ignore that sentence.
3/9/11
Appendix E 945 Error in Syntax
incorrect syntax for iif and if
True and false parts and in the wrong order.

The syntax should be:
Public Function IIf( _
ByVal Expression As Boolean, _
ByVal TruePart As Object, _
ByVal FalsePart As Object _
) As Object
04/01/08
See More

Related Titles

Back to Top