Errata

Microsoft® Visual C#® .NET Step by Step--Version 2003

Errata for Microsoft® Visual C#® .NET Step by Step--Version 2003

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page 136

Incorrect Statement
On page 136, there is an error in the fourth sentence of the third paragraph.
Change:
"If you choose to initialize or assign refc to c, refc will hold the same Circle object that c does; there is only one Circle object, and refc and c both refer to it."

To:
"If you choose to initialize or assign c to refc, refc will hold the same Circle object that c does; there is only one Circle object, and refc and c both refer to it."

Microsoft Press  Jul 13, 2010 
Printed
Page 148

Incorrect Statement Regarding Unboxing
On page 148, there is an error in the last sentence of the first paragraph.

Change:
"You have seen how assigning a variable of a value type to a variable of the System.Object class causes the boxed copy to refer to a variable of a value type (such as int)."

To:
"You have seen how assigning a variable of a value type with a variable of the System.Object class causes the boxed data to be extracted from the heap and be used to initialize the value type variable."

Microsoft Press  Jul 13, 2010 
Printed
Page 387

bellRingersTree Should Be bellRingersList
There is an error in Step 3 on page 387.Change:"Set the SmallImageList property of bellRingersTree to"To:"Set the SmallImageList property of bellRingersList to"

Microsoft Press  Jul 13, 2010 
Printed
Page 461-462

Missing Two Steps
There are missing steps on pages 461 and 462.

Change step 6 on Page 461 to:
"6 Add the following statements to the button1_Click method:

button1.Text = "Hello";
textBox1.Focus();
button1.Focus();

These statements change the caption that appears on the button, switches the focus over to the textbox control so it can update its display, and switches the focus back to the button.."Change step 8 on Page 462 to:
"8 Click the button. The button's caption changes to "Hello." The contents of the textbox change to "Hello" as well. The data binding causes any changes you make to the bound property to be propagated back to the original data source and vice versa."

Microsoft Press  Jul 13, 2010 
Printed
Page 505

Incorrect Information Regarding Control Panel
The Important note at the bottom of Page 505, fourth sentence, contains incorrect information.

Change:
"(If your computer is running Microsoft Windows XP with the Windows XP theme, in the Control Panel, click Performance and Maintenance.)"

To:
"(If your computer is running Microsoft Windows XP, and the Control Panel is set to display in Category View, then click on the "Performance and Maintenance" category.)"

Microsoft Press  Jul 13, 2010 
Printed
Page 549

"Customer.aspx.cs" Should Be "CustomerData.aspx.cs"
There is an error in the first sentence of Step 1 on Page 549.

Change:
"Display Customer.aspx.cs in the Code and Text Editor window."

To:
"Display CustomerData.aspx.cs in the Code and Text Editor window."

Microsoft Press  Jul 13, 2010 
Printed
Page 609

Capitalization Error
There is a capitalization error in the third program instruction line in Step 3 located at the top of Page 609.Change:"totalCost.Text = totCost.ToString();"To:"TotalCost.Text = totCost.ToString();"

Microsoft Press  Jul 13, 2010 
Printed
Page 609

Capitalization Error
There is a capitalization error in the seventh program instruction line in Step 4 located in the middle of page 609.Change:"Int32.Parse(numberRequired.Text), callback,"To:"Int32.Parse(NumberRequired.Text), callback,"

Microsoft Press is committed to providing informative and accurate
books. All comments and corrections listed above are ready for
inclusion in future printings of this book. If you have a later printing
of this book, it may already contain most or all of the above corrections.

Microsoft Press  Jul 13, 2010 
Printed
Page 111

Error In Code Sample On page 111, there is an error in the "Catch all exceptions in a single catch handler" example in the middle of the page. Change: "try { . } catch (Exception caught) { . }" To: "try { . } catch (System.Exception caught) { . }"

Microsoft Press  May 06, 2010 
Printed
Page 136

Incorrect Statement On page 136, there is an error in the third sentence of the second paragraph. Change: "If you choose to initialize or assign copyi to i, copyi will hold the same value as i." To:: "If you choose to initialize or assign i to copyi, copyi will hold the same value as i."

Microsoft Press  May 06, 2010 
Printed
Page 313

Error In Code Sample On page 313, there is an error in the code sample. Change:struct Hour { public static implicit operator int (Hour from) { return value; } private int value; } TO:struct Hour { public static implicit operator int (Hour from) { return from.value; } private int value; }

Microsoft Press  May 06, 2010 
Printed
Page 448

Missing Step In Instructions There is a step missing between the first and second sentences of step 2 located on Page 449. The name property should also be in parenthesis.Change:"In the Solution Explorer, change the name of Class1.cs to Report.cs. In the Properties window, change the name of the Class1 class to Report."To:"In the Solution Explorer, change the name of Class1.cs to Report.cs. Click on the Class View tab, and select the Class1 class. In the Properties window, change the (name) property of the Class1 class to Report."

Microsoft Press  May 06, 2010 
Printed
Page 467

Missing Step There is a step missing from page 467. Insert the following as a new Step 5: "5 Select the textbox control on the form by clicking on it. The Properties window should now display the events associated with the textbox control. If not, click on the Events button to display them. Click the Enter event, and then click on the drop down arrow. Select itemSelected from the drop down list and hit enter. You will be returned to the itemSelected method in the Code View window but you don't have to type anything. After the form and its controls are created the textbox control receives the focus which generates the Enter event. By pointing that event to the itemSelected method we ensure the textbox displays a ProductID when the program starts." The remaining step numbers should be incremented by one.

Microsoft Press  May 06, 2010 
Printed
Page 510

Incorrect Label1 Values The Width and Height values on page 510 correspond to the Width and Height of the label on the form called "Label1." According to the table on the bottom of Page 508 the Label1 control should have a Height of 36px, and Width of 630px.Change: "Font-Size="X-Large" Width="712px" Height="46px">" To: Font-Size="X-Large" Width="630px" Height="36px">

Microsoft Press  May 06, 2010 
Printed
Page 589

UnitPrice Should Be 18 There is an error in the middle of the XML statements on Page 589.Change:"23"To:"18"

Microsoft Press  May 06, 2010 
Printed
Page 609

Capitalization Error There is a capitalization error in the sixth program instruction line in Step 4 located in the middle of Page 609.Change:"productService.BeginHowMuchWillItCost(productName.Text,"To:"productService.BeginHowMuchWillItCost(ProductName.Text,"

Microsoft Press  May 06, 2010