Visual Basic 2005 in a Nutshell, Third Edition

Book description

When Microsoft made Visual Basic into an object-oriented programming language, millions of VB developers resisted the change to the .NET platform. Now, after integrating feedback from their customers and creating Visual Basic 2005, Microsoft finally has the right carrot. Visual Basic 2005 offers the power of the .NET platform, yet restores the speed and convenience of Visual Basic. Accordingly, we've revised the classic in a Nutshell guide to the Visual Basic language to cover the Visual Basic 2005 version and all of its new features.

Unlike other books on the subject, Visual Basic 2005 in a Nutshell, 3rd Edition doesn't assume you're a novice. It's a detailed, professional reference to the Visual Basic language-a reference that you can use to jog your memory about a particular language element or parameter. It'll also come in handy when you want to make sure that there isn't some "gotcha" you've overlooked with a particular language feature.

The book is divided into three major parts: Part I introduces the main features and concepts behind Visual Basic programming; Part II thoroughly details all the functions, statements, directives, objects, and object members that make up the Visual Basic language; and Part III contains a series of helpful appendices. Some of the new features covered include Generics, a convenient new library called My Namespace, and the operators used to manipulate data in Visual Basic.

No matter how much experience you have programming with Visual Basic, you want Visual Basic 2005 in a Nutshell, 3rd Edition close by, both as a standard reference guide and as a tool for troubleshooting and identifying programming problems.

Table of contents

  1. Table of Contents
  2. Preface
    1. Why Another Visual Basic Book?
    2. Who This Book Is For
      1. Readers New to Visual Basic
      2. VB and VBScript Developers New to .NET
      3. Existing .NET Developers
    3. How This Book Is Structured
    4. About the Third Edition
    5. Using Code Examples
    6. Conventions Used in This Book
    7. Safari® Enabled
    8. How to Contact Us
    9. Acknowledgments
  3. I
  4. Introduction
    1. Why Visual Basic .NET?
    2. What Is Visual Basic .NET?
      1. Object Orientation
      2. A Common Type System
      3. Access to System Services: The Framework Class Library
      4. A Common Runtime Environment
      5. Naming Conventions
    3. What Can You Do with Visual Basic .NET?
    4. Versions of Visual Basic for .NET
  5. The .NET Framework: General Concepts
    1. Common Language Runtime
    2. Managed Code
    3. Namespaces
    4. Types and Objects
    5. Assemblies
    6. The Framework Class Library
    7. Application Deployment
    8. The .NET Framework and Visual Basic
  6. Introduction to Object- Oriented Programming
    1. Principles of Object-Oriented Programming
      1. Objects and Classes
      2. Abstraction
      3. Encapsulation
      4. Inheritance
      5. Interfaces
      6. Polymorphism
      7. Overloading
    2. OOP Development in Visual Basic
      1. Classes in Visual Basic
      2. Class Members
      3. Class Member Accessibility
      4. Field Members
      5. Event Members
      6. Method Members and Constructors
      7. Property Members
      8. Type Members
      9. Instance Members Versus Shared Members
      10. Finalize, Dispose, and Garbage Collection
      11. Structures and Modules Versus Classes
      12. Interfaces
      13. Inheritance
      14. MyBase, MyClass, and Me
      15. Shadowing and Overloading Members
        1. Shadowing
        2. Overloading
  7. Variables and Data Types
    1. Data Types
      1. Value and Reference Types
      2. Visual Basic Data Types: A Reference (1/2)
      3. Visual Basic Data Types: A Reference (2/2)
        1. Boolean data type
        2. Byte data type
        3. Char data type
        4. Date data type
        5. Decimal data type
        6. Double data type
        7. Integer data type
        8. Long data type
        9. Object data type
        10. SByte data type
        11. Short data type
        12. Single data type
        13. String data type
        14. UInteger data type
        15. ULong data type
        16. UShort data type
      4. User-Defined Data Types
      5. Data Type Conversion
    2. Variables
      1. Variable Declaration
      2. Variable Scope, Lifetime, and Access Level
        1. Local variables: block-level and procedure-level scope
        2. Module-level scope and access levels
    3. Constants
    4. Enumerations
    5. Arrays
    6. Collections
    7. Parameters and Arguments
      1. Passing Arguments
      2. Optional Arguments
      3. Parameter Arrays
  8. Operators
    1. Arithmetic Operators
    2. Concatenation Operators
    3. Logical and Bitwise Operators
    4. Assignment Operators
    5. Comparison Operators
      1. The Like Operator
    6. Object Operators
    7. Operator Overloading
    8. Operator Precedence
  9. Program Structure
    1. Visual Studio Application Types
    2. Referencing Components and Classes
    3. Application Entry Points
      1. Using Main in a Standard Class or Module
      2. Using Main in Windows Forms Applications
    4. Code File Contents
      1. Declarations Section
      2. Namespaces
      3. Types
    5. The Structure of a Visual Basic Program
      1. Events: The Starting Point
        1. Windows Forms events
        2. ASP.NET events
        3. Event arguments
      2. Calling Routines from Event Handlers
      3. Writing Custom Procedures
        1. Functions
        2. Sub procedures
        3. Properties
  10. The .NET Framework Class Library
    1. The System Namespace
      1. The System.Convert Class
      2. The System.Array Class
      3. The System.Math Class
      4. The System.String Class
    2. The System.Collections Namespace
    3. The System.Data Namespace
    4. The System.IO Namespace
    5. The System.Text.RegularExpressions Namespace
    6. The System.Windows.Forms Namespace
    7. Other Namespaces
  11. Delegates and Events
    1. Delegates
      1. Using a Delegate to Call a Method
      2. Using a Delegate as a Generic Callback
    2. Events and Event Binding
      1. Control-Related Events
      2. WithEvents
      3. AddHandler and RemoveHandler
      4. Custom Events
  12. Attributes
    1. Syntax and Use
    2. Defining a Custom Attribute
    3. Using a Custom Attribute (1/2)
    4. Using a Custom Attribute (2/2)
  13. Generics
    1. What Are Generics?
    2. Type Parameters
    3. Multiple Type Parameters
    4. Constraints
    5. Multiple Constraints
    6. Accessing Type Parameter Members
    7. Generic Methods
    8. Nested Generic Types
    9. Overloaded Types and Members
  14. Error Handling in Visual Basic
    1. Error Detection and Error Handling
    2. Runtime Error Handling
      1. Unstructured Error Handling
        1. The Err object
        2. Dealing with runtime errors
      2. Structured Exception Handling
        1. Exception classes
    3. Dealing with Logic Errors
    4. Error Constants
  15. II
  16. The Language Reference
    1. #Const Directive
    2. #If...Then...#Else Directive
    3. #Region...#End Region Directive
    4. Abs Function
    5. Acos Function
    6. AddHandler Statement
    7. AddressOf Operator
    8. AppActivate Procedure
    9. Application Class
    10. Application.CompanyName Property
    11. Application.DoEvents Method
    12. Application.ExecutablePath Property
    13. Application.ProductName Property
    14. Application.ProductVersion Property
    15. Application.Run Method
    16. Array Class
    17. Array.BinarySearch Method
    18. Array.Copy Method
    19. Array.IndexOf Method
    20. Array.LastIndexOf Method
    21. Array.Reverse Method
    22. Array.Sort Method
    23. Asc, AscW Functions
    24. AssemblyVersion Attribute
    25. Asin Function
    26. Atan Function
    27. Atan2 Function
    28. AttributeUsage Attribute
    29. Beep Procedure
    30. Call Statement
    31. CallByName Function
    32. CBool Function
    33. CByte Function
    34. CChar Function
    35. CDate Function
    36. CDbl Function
    37. CDec Function
    38. Ceiling Function
    39. ChDir Procedure
    40. ChDrive Procedure
    41. Choose Function
    42. Chr, ChrW Functions
    43. CInt Function
    44. Class...End Class Statement
    45. Clipboard Class
    46. CLng Function
    47. CLSCompliant Attribute
    48. CObj Function
    49. Collection Class
    50. Collection.Add Method
    51. Collection.Count Property
    52. Collection.Item Property
    53. Collection.Remove Method
    54. ColorDialog Class
    55. COMClass Attribute
    56. Command Function
    57. Const Statement
    58. Continue Statement
    59. Cos Function
    60. Cosh Function
    61. CreateObject Function
    62. CSByte Function
    63. CShort Function
    64. CSng Function
    65. CStr Function
    66. CType Function
    67. CUInt Function
    68. CULng Function
    69. CUShort Function
    70. CurDir Function
    71. Custom Event Statement
    72. DateAdd Function
    73. DateDiff Function
    74. DatePart Function
    75. DateSerial Function
    76. DateString Property
    77. DateValue Function
    78. Day Function
    79. DDB Function
    80. Debug Class
    81. Debug.Assert Method
    82. Debug.Listeners Property
    83. Debug.Write Method
    84. Debug.WriteIf Method
    85. Debug.WriteLine Method
    86. Debug.WriteLineIf Method
    87. Declare Statement
    88. DefaultMember Attribute
    89. Delegate Statement
    90. DeleteSetting Procedure
    91. Dim Statement
    92. Dir Function
    93. DirectCast Function
    94. Directory Class
    95. Directory.CreateDirectory Method
    96. Directory.Delete Method
    97. Directory.Exists Method
    98. Directory.GetCreationTime Method
    99. Directory.GetDirectories Method
    100. Directory.GetDirectoryRoot Method
    101. Directory.GetFiles Method
    102. Directory.GetFileSystemEntries Method
    103. Directory.GetLogicalDrives Method
    104. Directory.GetParent Method
    105. Directory.Move Method
    106. Do...Loop Statement
    107. E Field
    108. End Statement
    109. Enum Statement
    110. Environ Function
    111. EOF Function
    112. Erase Statement
    113. Erl Property
    114. Err Object
    115. Err.Clear Method
    116. Err.Description Property
    117. Err.GetException Method
    118. Err.HelpContext Property
    119. Err.HelpFile Property
    120. Err.LastDLLError Property
    121. Err.Number Property
    122. Err.Raise Method
    123. Err.Source Property
    124. Error Statement
    125. ErrorToString Function
    126. Event Statement
    127. Exception Class
    128. Exit Statement
    129. Exp Function
    130. File Class
    131. File.Exists Method
    132. FileAttr Function
    133. FileClose Procedure
    134. FileCopy Procedure
    135. FileDateTime Function
    136. FileGet, FileGetObject Procedures
    137. FileLen Function
    138. FileOpen Procedure
    139. FilePut, FilePutObject Procedures
    140. FileWidth Procedure
    141. Filter Function
    142. Fix Function
    143. Flags Attribute
    144. Floor Function
    145. FontDialog Class
    146. For...Next Statement
    147. For Each...Next Statement
    148. Format Function
    149. FormatCurrency, FormatNumber, FormatPercent Functions
    150. FormatDateTime Function
    151. FreeFile Function
    152. Friend Keyword
    153. Function Statement
    154. FV Function
    155. GetAllSettings Function
    156. GetAttr Function
    157. GetChar Function
    158. GetObject Function
    159. GetSetting Function
    160. GetType Operator
    161. Global Keyword
    162. GoTo Statement
    163. Guid Attribute
    164. Handles Keyword
    165. Hashtable Class
    166. Hashtable.Add Method
    167. Hashtable.ContainsKey Method
    168. Hashtable.ContainsValue Method
    169. Hashtable.CopyTo Method
    170. Hashtable.Item Property
    171. Hashtable.Keys Property
    172. Hashtable.Remove Method
    173. Hashtable.Values Property
    174. Hex Function
    175. Hour Function
    176. IEEERemainder Function
    177. If...Then...Else Statement
    178. IIf Function
    179. Implements Keyword
    180. Implements Statement
    181. Imports Statement
    182. Inherits Statement
    183. Input Procedure
    184. InputBox Function
    185. InputString Function
    186. InStr Function
    187. InStrRev Function
    188. Int Function
    189. Interface...End Interface Statement
    190. IPmt Function
    191. IRR Function
    192. Is Operator
    193. IsArray Function
    194. IsDate Function
    195. IsDBNull Function
    196. IsError Function
    197. IsNot Operator
    198. IsNothing Function
    199. IsNumeric Function
    200. IsReference Function
    201. Join Function
    202. Kill Procedure
    203. LBound Function
    204. LCase Function
    205. Left Function
    206. Len Function
    207. Like Operator
    208. LineInput Function
    209. Loc Function
    210. Lock Procedure
    211. LOF Function
    212. Log Function
    213. Log10 Function
    214. LSet Function
    215. LTrim Function
    216. MarshalAs Attribute
    217. Max Function
    218. Me Keyword
    219. Mid Function
    220. Mid Statement
    221. Min Function
    222. Minute Function
    223. MIRR Function
    224. MkDir Procedure
    225. Mod Operator
    226. Module...End Module Statement
    227. Month Function
    228. MonthName Function
    229. MsgBox Function
    230. MTAThread Attribute
    231. MyBase Keyword
    232. MyClass Keyword
    233. Namespace Statement
    234. New Keyword
    235. Nothing Keyword
    236. Now Property
    237. NPer Function
    238. NPV Function
    239. Obsolete Attribute
    240. Oct Function
    241. Of Keyword
    242. On Error Statement
    243. OpenFileDialog Class
    244. Operator Statement
    245. Option Compare Statement
    246. Option Explicit Statement
    247. Option Strict Statement
    248. Out Attribute
    249. ParamArray Attribute
    250. Partial Keyword
    251. Partition Function
    252. PI Field
    253. Pmt Function
    254. Pow Function
    255. PPmt Function
    256. Print, PrintLine Procedures
    257. Private Keyword
    258. Property Statement
    259. Protected Keyword
    260. Public Keyword
    261. PV Function
    262. QBColor Function
    263. Queue Class
    264. Queue.Contains Method
    265. Queue.CopyTo Method
    266. Queue.Dequeue Method
    267. Queue.Enqueue Method
    268. Queue.Peek Method
    269. Queue.ToArray Method
    270. RaiseEvent Statement
    271. Randomize Procedure
    272. Rate Function
    273. ReDim Statement
    274. Rem Statement
    275. RemoveHandler Statement
    276. Rename Procedure
    277. Replace Function
    278. Reset Procedure
    279. Resume Statement
    280. Return Statement
    281. RGB Function
    282. Right Function
    283. RmDir Procedure
    284. Rnd Function
    285. Round Function
    286. RSet Function
    287. RTrim Function
    288. SaveFileDialog Class
    289. SaveSetting Procedure
    290. ScriptEngine Property
    291. ScriptEngineBuildVersion Property
    292. ScriptEngineMajorVersion Property
    293. ScriptEngineMinorVersion Property
    294. Second Function
    295. Seek Function
    296. Seek Procedure
    297. Select Case Statement
    298. Send, SendWait Methods
    299. SetAttr Procedure
    300. Shadows Keyword
    301. Shared Keyword
    302. Shell Function
    303. Sign Function
    304. Sin Function
    305. Sinh Function
    306. SLN Function
    307. Space Function
    308. SPC Function
    309. Split Function
    310. Sqrt Function
    311. Stack Class
    312. Stack.Contains Method
    313. Stack.CopyTo Method
    314. Stack.Peek Method
    315. Stack.Pop Method
    316. Stack.Push Method
    317. Stack.ToArray Method
    318. STAThread Attribute
    319. Static Statement
    320. Stop Statement
    321. Str Function
    322. StrComp Function
    323. StrConv Function
    324. StrDup Function
    325. StrReverse Function
    326. Structure...End Structure Statement
    327. Sub Statement
    328. Switch Function
    329. SYD Function
    330. SyncLock Statement
    331. SystemTypeName Function
    332. TAB Function
    333. Tan Function
    334. Tanh Function
    335. ThreadStatic Attribute
    336. Throw Statement
    337. TimeOfDay Property
    338. Timer Property
    339. TimeSerial Function
    340. TimeString Property
    341. TimeValue Function
    342. Today Property
    343. Trim Function
    344. Try...Catch...Finally Statement
    345. TryCast Function
    346. TypeName Function
    347. TypeOf Operator
    348. UBound Function
    349. UCase Function
    350. Unlock Procedure
    351. Using...End Using Statement
    352. Val Function
    353. VarType Function
    354. VBFixedArray Attribute
    355. VBFixedString Attribute
    356. VbTypeName Function
    357. WebMethod Attribute
    358. WebService Attribute
    359. Weekday Function
    360. WeekdayName Function
    361. While...End While Statement
    362. With...End With Statement
    363. WithEvents Keyword
    364. Write, WriteLine Procedures
    365. Year Function
  17. The ‘My’ Reference
    1. AllUsersApplicationData Property
    2. AltKeyDown Property
    3. Application Object
    4. ApplicationContext Property
    5. AssemblyName Property
    6. Audio Object
    7. AvailablePhysicalMemory Property
    8. AvailableVirtualMemory Property
    9. ButtonsSwapped Property
    10. CapsLock Property
    11. ChangeCulture Method
    12. ChangeUICulture Method
    13. ClassesRoot Property
    14. Clear Method
    15. Clipboard Object
    16. Clock Object
    17. Close Method
    18. CombinePath Method
    19. CommandLineArgs Property
    20. CommentTokens Property
    21. CompanyName Property
    22. Computer Object
    23. ContainsAudio Method
    24. ContainsData Method
    25. ContainsFileDropList Method
    26. ContainsImage Method
    27. ContainsText Method
    28. CopyDirectory Method
    29. CopyFile Method
    30. Copyright Property
    31. CreateDirectory Method
    32. CtrlKeyDown Property
    33. Culture Property
    34. CurrentConfig Property
    35. CurrentDirectory Property
    36. CurrentPrincipal Property
    37. CurrentUser Property
    38. CurrentUserApplicationData Property
    39. DefaultFileLogWriter Property
    40. DeleteDirectory Method
    41. DeleteFile Method
    42. Delimiters Property
    43. Deployment Property
    44. Description Property
    45. Desktop Property
    46. DirectoryExists Method
    47. DirectoryPath Property
    48. DoEvents Method
    49. DownloadFile Method
    50. Drives Property
    51. DynData Property
    52. EndOfData Property
    53. ErrorLine Property
    54. ErrorLineNumber Property
    55. FieldWidths Property
    56. FileExists Method
    57. FileSystem Object
    58. FindInFiles Method
    59. Forms Object
    60. GetAudioStream Method
    61. GetData Method
    62. GetDataObject Method
    63. GetDirectories Method
    64. GetDirectoryInfo Method
    65. GetDriveInfo Method
    66. GetEnvironmentVariable Method
    67. GetFileDropList Method
    68. GetFileInfo Method
    69. GetFiles Method
    70. GetImage Method
    71. GetName Method
    72. GetParentPath Method
    73. GetTempFileName Method
    74. GetText Method
    75. GetValue Method
    76. GmtTime Property
    77. HasFieldsEnclosedInQuotes Property
    78. Info Object (My.Application)
    79. Info Object (My.Computer)
    80. InitializeWithWindowsUser Method
    81. InstalledUICulture Property
    82. IsAuthenticated Property
    83. IsAvailable Property
    84. IsInRole Method
    85. IsNetworkDeployed Property
    86. Keyboard Object
    87. LineNumber Property
    88. LoadedAssemblies Property
    89. LocalMachine Property
    90. LocalTime Property
    91. Log Object (My)
    92. Log Object (My.Application)
    93. MinimumSplashScreenDisplayTime Property
    94. Mouse Object
    95. MoveDirectory Method
    96. MoveFile Method
    97. My Namespace
    98. MyDocuments Property
    99. MyMusic Property
    100. MyPictures Property
    101. Name Property (My.Computer)
    102. Name Property (My.User)
    103. Network Object
    104. NetworkAvailabilityChanged Event (My.Application)
    105. NetworkAvailabilityChanged Event (My.Computer.Network)
    106. NumLock Property
    107. OpenForms Property
    108. OpenSerialPort Method
    109. OpenTextFieldParser Method
    110. OpenTextFileReader Method
    111. OpenTextFileWriter Method
    112. OSFullName Property
    113. OSPlatform Property
    114. OSVersion Property
    115. PeekChars Method
    116. PerformanceData Property
    117. Ping Method
    118. Play Method
    119. PlaySystemSound Method
    120. Ports Object
    121. ProductName Property
    122. ProgramFiles Property
    123. Programs Property
    124. ReadAllBytes Method
    125. ReadAllText Method
    126. ReadFields Method
    127. ReadLine Method
    128. ReadToEnd Method
    129. Registry Object
    130. RenameDirectory Method
    131. RenameFile Method
    132. Request Object
    133. Resources Object
    134. Response Object
    135. Run Method
    136. SaveMySettingsOnExit Property
    137. Screen Property
    138. ScrollLock Property
    139. SendKeys Method
    140. SerialPortNames Property
    141. SetAudio Method
    142. SetData Method
    143. SetDataObject Method
    144. SetDelimiters Method
    145. SetFieldWidths Method
    146. SetFileDropList Method
    147. SetImage Method
    148. SetText Method
    149. Settings Object
    150. SetValue Method
    151. ShiftKeyDown Property
    152. Shutdown Event
    153. SpecialDirectories Object
    154. SplashScreen Property
    155. StackTrace Property
    156. Startup Event
    157. StartupNextInstance Event
    158. Stop Method
    159. Temp Property
    160. TextFieldParser Object
    161. TextFieldType Property
    162. TickCount Property
    163. Title Property
    164. TotalPhysicalMemory Property
    165. TotalVirtualMemory Property
    166. TraceSource Property
    167. Trademark Property
    168. TrimWhiteSpace Property
    169. UICulture Property
    170. UnhandledException Event
    171. UploadFile Method
    172. User Object
    173. Users Property
    174. Version Property
    175. WebServices Object
    176. WheelExists Property
    177. WheelScrollLines Property
    178. WorkingSet Property
    179. WriteAllBytes Method
    180. WriteAllText Method
    181. WriteEntry Method
    182. WriteException Method
  18. III
  19. Language Elements by Category
    1. Array Handling
    2. Clipboard
    3. Collection Objects
    4. Common Dialogs
    5. Conditional Compilation
    6. Conversion
      1. Data Type Conversion
      2. Other Conversion
    7. Date and Time
    8. Debugging
    9. Declaration
    10. Error Handling
    11. File System
    12. Financial
    13. Information
    14. Input/Output
    15. Integrated Development Environment
    16. Interaction
    17. Mathematics
    18. Program Structure and Flow
    19. Programming
      1. Object Programming
      2. Miscellaneous Programming
    20. Registry
    21. String Manipulation
  20. Namespace Hierarchy
    1. ‘My’ Namespace Hierarchy
    2. System Namespace Hierarchy
  21. Constants and Enumerations
    1. Visual Basic Intrinsic Constants
    2. ControlChars Class
    3. Visual Basic Enumerations
      1. AppWinStyle Enumeration
      2. AudioPlayMode Enumeration
      3. BuiltInRole Enumeration
      4. CallType Enumeration
      5. CompareMethod Enumeration
      6. DateFormat Enumeration
      7. DateInterval Enumeration
      8. DeleteDirectoryOption Enumeration
      9. DueDate Enumeration
      10. FieldType Enumeration
      11. FileAttribute Enumeration
      12. FirstDayOfWeek Enumeration
      13. FirstWeekOfYear Enumeration
      14. MsgBoxResult Enumeration
      15. MsgBoxStyle Enumeration
      16. OpenAccess Enumeration
      17. OpenMode Enumeration
      18. OpenShare Enumeration
      19. RecycleOption Enumeration
      20. SearchOption Enumeration
      21. TriState Enumeration
      22. UICancelOption Enumeration
      23. UIOption Enumeration
      24. VariantType Enumeration
      25. VbStrConv Enumeration
  22. What’s New and Different in Visual Basic .NET 2002
    1. Language Changes in VB.NET 2002
      1. Data Types
        1. Strings
        2. Integer/Long data-type changes
        3. Variant data type
        4. Other data-type changes
      2. Variables and Their Declaration
        1. Variable declaration
        2. Variable initialization
        3. Variable scope changes
        4. Arrays and array declarations
        5. Structure/user-defined type declarations
      3. Logical and Bitwise Operators
      4. Changes Related to Procedures
        1. Calling a procedure
        2. Default method of passing arguments
        3. Optional arguments
        4. GoSub and Return statements
        5. Passing Property parameters in procedures
        6. ParamArray parameters
      5. Miscellaneous Language Changes
        1. Line numbers
        2. On GoSub and On GoTo statements
        3. While statement
    2. Changes to Programming Elements
      1. Constants
      2. String Functions
      3. Emptiness
      4. Graphical Functionality
      5. Mathematical Functionality
      6. Diagnostics
      7. Miscellaneous
    3. Obsolete Programming Elements
    4. Structured Exception Handling
    5. Changes in Object Orientation
      1. Inheritance
      2. Overloading
      3. Object Creation
      4. Properties
        1. Default properties
        2. Property declarations
  23. What’s New and Different in Visual Basic .NET 2003
    1. Language Changes in VB.NET 2003
      1. Bit Shift Operators
      2. Declaration in For Loops
  24. What’s New and Different in Visual Basic 2005
    1. Enhancements of Existing Functionality
      1. Custom Event Statement
      2. Data-Type Additions
      3. Global Keyword
      4. IsNot Operator
      5. Lower Bound in Array Declarations
      6. Partial Types
      7. Property Accessor Enhancements
      8. TryCast Function
    2. The ‘My’ Namespace
    3. Other New Features
      1. ClickOnce Installation
      2. Continue Statement
      3. Generics
      4. Operator Overloading
      5. Using Statement
      6. XML Comments
  25. VB 6 Language Elements No Longer Supported
  26. The Visual Basic Command- Line Compiler
    1. Compiler Basics
    2. Command-Line Switches
      1. Output Filename and File Type
      2. Input Files
      3. Resources
      4. Code Generation
      5. Debugging
      6. Errors and Warnings
      7. Language
      8. Miscellaneous
      9. Advanced
    3. Using a Response File
    4. Conditional Compilation Constants
  27. Index (1/5)
  28. Index (2/5)
  29. Index (3/5)
  30. Index (4/5)
  31. Index (5/5)

Product information

  • Title: Visual Basic 2005 in a Nutshell, Third Edition
  • Author(s): Tim Patrick, Ron Petrusha, Paul Lomax, Steven Roman PhD
  • Release date: January 2006
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596101527