MasteringTM Microsoft® Visual Basic® 2005
MasteringTM Microsoft® Visual Basic® 2005
Product not available for purchase
DescriptionThe Definitive Word on Visual Basic 2005
The release of Visual Basic 2005 solidifies Visual Basic's first-class position in the world of object-oriented programming. Written by the author of the best-selling Mastering Visual Basic .NET, this is the authoritative resource you'll need to master the most powerful version of the Visual Basic language and the newest tools comprising Visual Studio(r). Inside, you'll find in-depth explanations and practical examples addressing dozens of key techniques, along with transition tips for the VB 6 developer.
* Mastering the new Windows Forms Designer and controls
* Building dynamic forms
* Using powerful Framework classes such as Collections and Cryptography
* Persisting objects to disk files
* Handling graphics and printing elaborate reports
* Achieving robustness via structured exception handling
* Developing your own classes and extending existing ones via inheritance
* Building custom Windows controls
* Building menus and list controls with custom-drawn items
* Using ADO.NET 2.0 to build disconnected, distributed applications
* Using SQL queries and stored procedures with ADO.NET 2.0
* Facilitating database programming with the visual database tools
* Building web applications with ASP.NET 2.0 and the rich web controls
* Designing data-driven web applications
* Detailed discussion of the DataGridView and DataList web controls
* Building XML web services to use with Windows and web applications
Get up to Speed on the Major Classes of the New Version of the Framework
Build Custom Classes and Controls
Take Advantage of Enhanced Web and Database Programming Features
Part 1: GUI Design and Event-Driven Programming.
Chapter 1: Getting Started with Visual Basic 2005.
Chapter 2: Visual Basic: The Language.
Chapter 3: Procedures and Modules.
Part 2: Building Rich Client Applications.
Chapter 4: Basic Windows Controls.
Chapter 5: Working with Forms.
Chapter 6: More Windows Controls.
Chapter 7: The TreeView and ListView Controls.
Part 3: Programming with Objects.
Chapter 8: Building Custom Classes.
Chapter 9: Working with Objects.
Chapter 10: Interfaces and Delegates.
Chapter 11: Building Custom Windows Controls.
Part 4: Working with the .NET Framework.
Chapter 12: Handling Strings, Characters, and Dates.
Chapter 13: Storing Data in Collections.
Chapter 14: Accessing Folders and Files.
Chapter 15: Data Encryption.
Chapter 16: Serialization and XML.
Chapter 17: Working with XML.
Part 5: Drawing and Printing.
Chapter 18: Drawing and Painting with Visual Basic 2005.
Chapter 19: Manipulating Images and Bitmaps.
Chapter 20: Printing with VB 2005.
Part 6: Database Programming with VB 2005.
Chapter 21: Basic Concepts of Relational Databases.
Chapter 22: Visual Database Tools.
Chapter 23: Programming the ADO.NET Objects.
Chapter 24: Working with SQL Server 2005.
Chapter 25: Typical Data-Driven Applications.
Part 7: Programming for the Web.
Chapter 26: Developing for the Web.
Chapter 27: ASP.NET 2.0.
Chapter 28: Developing Data-Driven Web Applications.
Chapter 29: XML Web Services.
Part 8: Polishing Your Applications.
Chapter 30: Designing Functional, Professional Interfaces.
Chapter 31: Error Handling and Debugging.
Chapter 32: Application Deployment.
- Offers comprehensive beginner-to-advanced coverage of the latest version of Microsoft Visual Basic
- Features lots of real-world examples and a clear tutorial style
- Includes a "VB 6 to VB 2005" feature that makes it easy for VB 6 developers to make the jump to .NET
- Thoroughly revised with 12 all-new chapters and updates throughout
- The CD-ROM contains all code examples and the large sample applications developed throughout the book
On page 227 the first sentence in the second paragraph states If you use the MouseUp event handler instead, ... It should read If you use the KeyUp event handler instead, ...
The second paragraph on page 227 implies that using the KeyDown event to process the Enter key should produce a "quiet" event. However, it still produces a Beep sound. Replace the statement that sets the Handled method with the following in the KeyDown event handler:
e.SuppressKeyPress = True
and to get rid of the beep.
The first sentence in the last paragraph on page 70 states "You can also produce an infinity value by multiplying a very large (or a very small) number by itself many times."
It should read
"You can also produce an infinity value by multiplying a very large number by itself many times, or by dividing a large number by a very small number repeatedly."
The 2nd paragraph on page 90 states Using this structure, you can store up to 10 e-mail addresses per person referring to the structure field Email dimensioned as Dim Email(10) as String .
This sentence is incorrect and should read Using this structure, you can store up to 11 e-mail addresses per person . Or the dimension field statement should changed to read Dim Email(9) as String .
The 3rd paragraph on page 90 states This array can hold contact information for 1,000 persons ... referring to the array of structures dimensioned as Dim allPeople(1000) as Person .
This sentence is incorrect and should read This array can hold contact information for 1,001 persons ... . Or the structure dimension statement should changed to read Dim allPeople(999) as Person .
The last paragraph on page 188 states "The keycode for the function key F1 is 112 (or the constant Key.F12), the keycode for F2 is 113 (or the constant Keys.F13) ...".
The constant for F1 is Keys.F1.
The constants are leftovers from previous versions of VB and they still work, but the code isn't elegant.
Listing 9.1 on page 424 will not work correctly. To fix the code please change
The text at the bottom of page 425 and the top of the following page should read:
The code shown in Listing 22.8 on page 524 will produce an IndexOutOfRange Exception. To correct this problem the current character position (intcurrPos) must compared against the ordinal of the last character in the string, which is TextBox1.Text.Length - 1, and not TextBox1.Text.Length:
if intcurrPos >= Textbox1.Text.Length -1 Then
This statements appears three different times in Listing 22.8
Figure 8.4 on page 373 is the wrong one. The correct figure is included in the file F0804NEW.TIF
shown on page 388 will result in an error because there are no constructors which have only two string parameters. You must add a third constructor to the class with the following statements:
The code shown in Listing 13.14 does not produce the output shown at the bottom of page 587. Based on the code shown in Listing 13.14 (accounting for the fact that "area" is mispelled as "are"), the correct output should be:
The area of rectangle R1 is 100
The area of rectangle R2 is 400
The area of rectangle R3 is 4
The second sentence in the section "PadLeft, PadRight" should read
" ... with spaces to the left (for left-padded strings) or to the right (for right-padded strings)"
The values of strPadLeft and strPadRight shown in the middle of the page should be reversed. That is ...
Finally, the first sentence in the paragraph preceding the TIP should be changed to read
The variable CTemp which is used in the following code segment:
CTemp = InputBox(“Enter temperature in degrees Celsius”)
should be declared As String, because the InputBox() function returns a string value.