Mastering Visual Basic.NetISBN: 978-0-7821-2877-2
Paperback
1184 pages
January 2002
![]() This title is out-of-print and not currently available for purchase from this site.
Other Available Formats: E-book
|
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.
| Chapter | Page | Details | Date | Print Run |
|---|---|---|---|---|
| Combined Errata Page 0 CD Contact example from the CD Chapter 5 has an error. .
The following statement in the SaveContact() subroutine:
had to be changed to: If Not adding Then contact = CType(MyContacts.Item(currentContact), Contact) End If
Download the updated Zip file containing My Contacts from Chapter 5 at: http://www.wiley.com/WileyCDA/WileyAncillary/productCd-0782128777,typeCd-DOWNLOAD.html Page 100 In the Code Listing, 3.4, An error is generated.
Line as Written
Should Read
Page 121 3rd Paragraph, 4th line reads "State.Intederminate", should be "State.Indeterminate"
Page 202 Third paragraph, 1st sentence "right" should be "left" 3rd paragraph, 4th sentence, "left" should be "right"
Page 208 Last paragraph, is incorrect.
Page 272 Listing 6.12, Please replace the listing with the following:
While sourceList.SelectedIndices.Count > 0
Page 376 Line 12 of Listing 8.38:
Page 426 Section "Designing Owner-Drawn ListBox Controls",
Page 436 I am getting the error "wordapp.quit()" :
WordApp.Quit with the following: CType(WordApp,
I have revised the projects of chapter 10 and I'm attaching a ZIP file with the latest version of the projects. The affected projects contain a
--------------------------------------------------
REVISED WORDSPELLCHECKER PROJECT TO FIX A BUG WITH THE CLOSE & QUIT METHODS The original application (as discussed in the book),calls the Document.Close method to close an open document and the Application.Quit method to terminate Word. However, you can't call these methods directly - if you do, an exception
To close a document, convert the Document object
To close Word, convert the Word.Application object
CType(WordApp,
The argument passed to both methods indicates that Word shouldn't prompt the user to saving the changes. You can also call these methods passing False as argument. The changes affect the statements that close an open document and terminate the Word application. It's critical that you close any documents you no longer need and shut down the running instance of Word. If not, you'll get an exception when you attempt to open the same document again. Listing in the middle of the page: Please replace the statement: WordApp.Quit() to CType(WordApp, Word._Application).Quit()
Page 439 LISTING 10.1,
WordApp.Quit()
Author note: I have revised all the projects of chapter 10 and you can find the revised projects in the file CH10.ZIP in the DownLoad section of the book's pages on this site. Page 481 Please change the following statement in the middle of the page: System.Array.Sort(arrayName, startIndex, endIndex)
The sentence following the previous statement on the same page should be changed to: "where startIndex is the starting index of the section of the array to be sorted and count is the number of elements to be sorted. This method will sort count elements starting with the element at index startIndex." Page 508 Stacks and Queues. .
Page 515 The 4th line in Listing 11.14:Console.WriteLine("The value of " & hEnum.Key & " {0} is " & hEnum.Value) should be: Console.WriteLine("The value of " & hEnum.Key & " is {0}", hEnum.Value)
Page 543 The following statement in the code sample: Dim vbTab As String = vbCrLf should be: Dim vbTab As String = vbTab
Page 564 The second line after Table 12.5 states: "... will return the value 70", it should read: "... will return the value 130"
Page 640 The section's title should be: The GraphicsPath Object
Page 657 In the syntax of the MeasureString method the last two arguments should be reversed:
Page 758 Globe Project, The serializing of the contents does not work correctly. The Globe control demonstrates how to populate the TreeView control and how to persist its Nodes collection to a file. The interface of the application allows the addition of nested nodes up to 3 levels. The code that saves the Nodes collection will work with any number of nesting levels (you just need a different interface to make a tree with an arbitrary nesting depth). I've written an application that allows you to add nodes to a TreeView control at run-time and persist the control's contents to an XML file. I'm attaching a ZIP file with the project's code. The code is documented and you won't have any problems following it. Evangelos
treeview.zip 19KB Page 943 4th paragraph
"Create the DataSet object and name it DSCustomers"
Page 945 The listing in the middle of the page (Button2_Click subroutine) should be changed. Please add the following statement before the call the to Update method: Me.BindingContext(DsCustomers1, "Customers").EndCurrentEdit The correct listing of the subroutine is: Private Sub Button2_Click(ByVal sender As Object, _
Page FAQ Chap 6 "resx" error :
Please delete the file with extensions RESX. To view it, click the "Show All
Evangelos |

