Skip to main content

Visual Basic 2010 Programmer's Reference

Visual Basic 2010 Programmer's Reference

Rod Stephens

ISBN: 978-0-470-49983-2

Feb 2010

1272 pages

Select type: Paperback

Product not available for purchase

Description

Visual Basic expert Rod Stephens shows you how to leverage the latest features of VB 2010

Microsoft Visual Basic (VB) is the most popular programming language in the world, with millions of lines of code used in businesses and applications of all types and sizes. The new release of Visual Basic 2010 is tightly integrated with the Windows operating system and the .NET programming environment. Renowned VB authority Rod Stephens provides a comprehensive guide to Visual Basic programming, including the latest enhancements to the VB language and programming environment with Visual Studio 2010 The tutorial is packed with detailed and practical code examples that show readers how to master all of the features of VB.

  • Visual Basic authority Rod Stephens presents a must-have resource on Visual Basic, the most popular programming language in the word
  • Fully covers the newest features of Visual Basic 2010, such as array literals and initializers, collection initializers, implicit line continuation, Lambda expressions, and more
  • Features extensively revised and tested code to ensure compliance with the latest release

With this essential resource, you'll be able to quickly review the details of important programming, objects, properties, methods, and events.

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

INTRODUCTION.

PART I: IDEI.

CHAPTER 1 Introduction to the IDE.

CHAPTER 2 Menus, Toolbars, and Windows.

CHAPTER 3 Customization.

CHAPTER 4 Windows Forms Designer.

CHAPTER 5 WPF Designer.

CHAPTER 6 Visual Basic Code Editor.

CHAPTER 7 Debugging.

PART II: GETTING STARTED.

CHAPTER 8 Selecting Windows Forms Controls.

CHAPTER 9 Using Windows Forms Controls.

CHAPTER 10 Windows Forms.

CHAPTER 11 Selecting WPF Controls.

CHAPTER 12 Using WPF Controls.

CHAPTER 13 WPF Windows.

CHAPTER 14 Program and Module Structure.

CHAPTER 15 Data Types, Variables, and Constants.

CHAPTER 16 Operators.

CHAPTER 17 Subroutines and Functions.

CHAPTER 18 Program Control Statements.

CHAPTER 19 Error Handling.

CHAPTER 20 Database Controls and Objects.

CHAPTER 21 LINQ.

CHAPTER 22 Custom Controls.

.CHAPTER 23 Drag and Drop, and the Clipboard.

CHAPTER 24 UAC Security.

PART III OBJECT-ORIENTED PROGRAMMING.

CHAPTER 25 OOP Concepts.

CHAPTER 26 Classes and Structures.

CHAPTER 27 Namespaces.

CHAPTER 28 Collection Classes.

CHAPTER 29 Generics.

PART IV: GRAPHICS.

CHAPTER 30 Drawing Basics.

CHAPTER 31 Brushes, Pens, and Paths.

CHAPTER 32 Text.

CHAPTER 33 Image Processing.

CHAPTER 34 Printing.

PART V: INTERACTING WITH THE ENVIRONMENT.

CHAPTER 35 Confi guration and Resources.

CHAPTER 36 Streams.

CHAPTER 37 File-System Objects.

CHAPTER 38 Windows Communication Foundation.

CHAPTER 39 Useful Namespaces.

PART VI: APPENDIXES.

APPENDIX A Useful Control Properties, Methods, and Events.

APPENDIX B Variable Declarations and Data Types.

APPENDIX C Operators.

APPENDIX D Subroutine and Function Declarations.

APPENDIX E Control Statements.

APPENDIX F Error Handling.

APPENDIX G Windows Forms Controls and Components.

.APPENDIX H WPF Controls.

APPENDIX I Visual Basic Power Packs.

APPENDIX J Form Objects.

APPENDIX K Classes and Structures.

APPENDIX L LINQ.

APPENDIX M Generics.

APPENDIX N Graphics.

APPENDIX O Useful Exception Classes.

APPENDIX P Date and Time Format Specifiers.

APPENDIX Q Other Format Specifiers.

APPENDIX R The Application Class.

APPENDIX S The My Namespace.

APPENDIX T Streams.

APPENDIX U File-System Classes.

APPENDIX V Index of Examples.

INDEX.

ReadMe doc Download
Final Code Downloads Download
165Error in Code,MRU LISTS
Second paragraph
Last sentence
Suggests that pressing 2 in Figure 10-9 will reopen file SDIEdit.sln.
Figure 10-9 does not display any reference to file SDIEdit.sln.
This should be MruList.vb
01/06/2012
320Error in Text,Table (continuation) at top of page:

Subtraction Operator is printed as 2
Should be -

Calculator Cleverness - box
Second to last sentence:
Currently:
Instructs the reader to select Scientific from the View menu.

Should:
Instruct the reader to select Programmer from the View menu.

(In Windows Vista the command it labeled Scientific. Microsoft may have changed it in different editions.)
12/20/2011
331Error in Code,SYNTAX result_boolean = Date.op_Equality(date1, date2)

Indicates: True if date1>date2
Should be: True if date1=date2
12/20/2011
357Error in Code,For factorial of N is N* (N21) * (N22) ... * 1

Should read: factorial of N is N* (N-1) * (N-2) ... * 1
10/25/2010
406Error in Text,In Stack Trace Objects code example, the last line has a spelling error:

Currently reads:
stack_trave

Should read:
stack_trace
12/30/2011
482Error in Text,Second paragraph under Using LINQ Results:

Indicates that the Select clause in the following code will be bolded.
This is incorrect.
01/09/2012
483Error in Text,Currently reads:
...Customer properties area available because...

Should read:
are instead of area
1/4/2012
484Error in Text,Fourth paragraph, just above the shaded box:

Reads: The Group By statement returns...
Should read: The Group Join statement returns...
01/09/2012
486Error in Text,Third paragraph - the one just after the second code example:

Reads: ...it displays the group's CustId and the loops through...
Should read: ...it displays the group's CustId and then loops through...
01/09/2012
502Error in Code,Second code example, In LINQ query Where clause

Operator is: <=
It should be: >=
01/09/2012
558Error in Text,Seventh paragraph

Reads: If you are a logged in as a ...

Should read: If you are logged in as a ...
01/06/2012
614Error in Text,First paragraph under Declaring Events

Reads:
...whenever it needs to notify to the program...

Should read:
...whenever it needs to notify the program...
01/06/2012
716Error in Code,The first code example:

Reads:
Dim device_rect As New Rectangle(50, 200, 150, -150)
Should read:
Dim device_rect As New Rectangle(50, 200, 200, -150)
01/12/2012
718Error in Text,Second to last paragraph

Currently reads:
...ellipse with bounds 10 <= X <= 300, 10 <= Y <= 100,...
Should read:
...ellipse with bounds 10 <= X <= 300, 10 <= Y <= 10,...
01/12/2012
735Error in Code,First paragraph below code example

First sentence reads:
...starting at (9, 10) and ending at (210, 10).
Should read:
...starting at (10, 10) and ending at (210, 10).
01/12/2012
923Error in Text,First paragraph under OPTION EXPLICIT AND OPTION STRICT sub-header

Second sentence reads:
... first time it is encountered if is has not yet...
Should read:
... first time it is encountered if it has not yet...
01/12/2012
928Error in Text,First paragraph reads:
...which can be 2, 8, 10, or 16 to if the string...

Should read:
...which can be 2, 8, 10, or 16 if the string...
01/12/2012
929Error in Text,In the last row in the table:
The example column reads:
&H57 << 1
Should read:
&H57 >> 1
01/17/2012
937Error in Code,In the first code example:
Currently reads:
...[interitance_mode]...
Should read:
...[inheritance_mode]...


In the second code example, this error reoccurs:
Currently reads:
...[interitance]...
Should read:
...[inheritance]...
01/17/2012
939Error in Text,The last sentence on the page

Reads:
...and finish with End Sub of End Function.
Should read:
...and finish with End Sub or End Function.
01/17/2012
943Error in Code,The first paragraph under the If and IIf sub-header contradicts the following code example.

It currently reads:
variable = IIf(condition, value_if_false, value_if_true)
It should read:
variable = IIf(condition, value_if_true, value_if_false)
and
variable = If(condition, value_if_true, value_if_false)
01/17/2012
961Error in Text,The first paragraph below the table states that Figure G-3's bottom DateTimePicker control's CustomFormat property is set to display the time and abbreviated month etc.

This was mistakenly included and is not the case. Please ignore this sentence.
01/12/2012
1019Error in Code,AppG

The TextBox control doesn't have an AutoSize property, although the Label control does (see page 970).
09/28/2010