Errata

MCTS Self-Paced Training Kit (Exam 70-505): Microsoft® .NET Framework 3.5 - Windows® Forms Application Development

Errata for MCTS Self-Paced Training Kit (Exam 70-505): Microsoft® .NET Framework 3.5 - Windows® Forms Application Development

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

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

Version Location Description Submitted by Date submitted
Other Digital Version 1
CD-ROM Readiness Review assessment (page unknown)

MCTS Self-Paced Training Kit
Q. You add a Panel named innerPanel to a Panel named outerPanel. You then set outerPanel's BackColor property to Red and you set innerPanel's Dock property to 'Fill'.
You need to configure the panels so that innerPanel is framed by an eight-pixel-wide red border.
Hint: set innerPanel?s BackColor to something like Blue, different from Red, so that its border stands out clearly. Otherwise you may believe the inner Panel and its border are red when they are not.
 
Have tried answer 4 (the given answer), but in the VS2008 solution the inner Panel clearly has no red border. My solution for this question appears below as answer 2. So I disagree with answer 4.

Displaying answers 1 and 3 (as expected, they don?t work). No borders.


 
The only solution that works is answer number 2: here the inner Panel clearly has a red border.

Set the Padding Left, Top, Right, and Bottom properties of outerPanel to 8. (This is the 1st part of answer 2.) Setting the Margin Left, Top, Right, and Bottom properties of innerPanel doesn?t make a difference.
Answer 4: Setting the Margin Left, Top, Right, and Bottom properties of innerPanel to 8, on its own doesn?t work (this is the 2nd part of answer 2).
Result
I disagree with the given answer in Microsoft Press of number 4.
I consider answer 2 to be the correct answer (the first part).

I could send you the Word document where this is outlined in screen shots, and/or a VS solution that I have created to illustrate.

William Hambly  Aug 07, 2010 
Printed Page 34
Table 1-10

In the description of BorderStyle property, "TabPage" should be "SplitContainer" in the first sentence.

Evren Alkan  Nov 29, 2011 
66
Last example in C#.

There is no Window namespace. Replace System.Window.Forms.DialogResult aResult; with System.Windows.Forms.DialogResult aResult;.

Lord Wilfrando  Feb 02, 2011 
74
1st paragraph

TextBox is not a property but a control. Replace "The text held by the TextBox property is accessible through the Text property." with "The text held by the TextBox control is accessible through the Text property.".

Lord Wilfrando  Feb 02, 2011 
82
1st section

In the sentence "You can check your answers by looking up the times in the glossary at the end of the book.", replace "times" with "terms".

Lord Wilfrando  Feb 02, 2011 
88
Table 3-1

The description of the SelectedItem property should be "Returns the selected item or, if the SelectionMode property is set to MultiSimple or MultiExtended, returns any selected item.".

Lord Wilfrando  Feb 04, 2011 
Printed Page 125
Exercise 1 Item 2

Size property is defined as 600;400 - this should read 600,400

David Oatley  Feb 18, 2011 
Printed Page 146
question 2, answer A

In answer A for C# we have "aToolStrip1" object name
instead of "aToolStrip".

Anonymous  Oct 25, 2011 
Printed Page 194
Question 2

Question 2 contains superfluous answer option E which is a repeat of option D, but is not referenced in the Answers section.

David Oatley  Feb 21, 2011 
Printed Page 200
Step 7 second paragraph

Reference to button name in code :
Private Sub OpenSqlServerButton_Click .... Handles OpenSqlServerButton.Click

differs from Name Property of button defined on page 197 i.e. OpenSqlButton

David Oatley  Feb 22, 2011 
Printed Page 245
Paragraph 3 NOTE

First line of note reads 'You can modify the code for the first lab in this chaper ....' should read 'You can modify the code for the first lab in this chapter ....'

David Oatley  Feb 23, 2011 
Printed Page 322
Item 2

Details to 'Add a reference to System.Data.Linq ....' in item 2 seem to be duplicated in item 7(?)

David Oatley  Feb 24, 2011 
Printed Page 347
in Chapter 7, Lesson 1: Creating DataSet Objects

On page 347, in Chapter 7, Lesson 1: Creating DataSet Objects there is the following C# code snippet:

// C#

DataSet CopyOfDataSet = new DataSet();
CopyOfDataSet = OriginalDataSet.Copy();

This code is in fact wrong, as you are not required to instantiate the DataSet prior to the call of Copy. The call to the method will overwrite the instance anyway. The code should read:

DataSet CopyOfDataSet;
CopyOfDataSet = OriginalDataSet.Copy();

Otherwise, there is an empty DataSet instance floating around, waiting to be garbage collected. I consider it bad practice to teach incorrect code to programmers, even though in this case the original code still works.

Anonymous  Jun 14, 2011 
Printed Page 400
1st paragraph Line 3

Sentence reads 'Call the WriteXmSchema method ....' should read 'Call the WriteXmlSchema method ....'

David Oatley  Mar 04, 2011 
Printed Page 619
Exercise 1, step 1

The partial solution includes a textBox1_KeyPress method intended to limit input digits. It is currently:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!(char.IsNumber(e.KeyChar)))
{
this.textBox1.Text = "";
}
}

However, the textBox1 control continues to display the last non-numeric character entered which causes an unhandled exception in the button1_Click event created in step 9 of the lab. To correct the problem, add "e.Handled = true;" in the textBox1_KeyPress method, as follows:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!(char.IsNumber(e.KeyChar)))
{
this.textBox1.Text = "";
e.Handled = true;
}
}

Bob Verhey  Dec 09, 2010 
Printed Page 712
Question 3 Option D

Option D states 'Setting the OLE DB Services connection string keyword to -7 turns on all services except pooling, autoenlistment and Client Cursor' whereas Table 5-9 on page 211 states 'All services except Pooling, AutoEnlistment and Client Cursor [set by value] 'OLE DB Services = -8'

To add to the confusion, table on http://support.microsoft.com/kb/253803 lists

All services (the default) "OLE DB Services = -1;"
All except Pooling and AutoEnlistment "OLE DB Services = -2;"
All except Client Cursor "OLE DB Services = -5;"
All except pooling, enlistment, and cursor "OLE DB Services = -7;"
No services "OLE DB Services = 0;"

whereas table on
http://msdn.microsoft.com/en-us/library/ms810829.aspx lists

All services (the default) "OLE DB Services = -1;"
All services except pooling "OLE DB Services = -2;"
All services except pooling and auto-enlistment "OLE DB Services = -4;"
All services except client cursor "OLE DB Services = -5;"
All services except client cursor and pooling "OLE DB Services = -6;"
No services "OLE DB Services = 0;"

David Oatley  Feb 22, 2011 
Printed Page 713
Option A

The explanations given for options A and D appear to be the wrong way round. According to Table 5-12 (Connection String Keywords) on page 224 and also 'Connection String Syntax (ADO.NET)' in VS 2008 Documentation
Integrated Security = yes is used for OracleClient and
Trusted_Connection = yes is used for ODBC connections

David Oatley  Feb 22, 2011 
Printed Page 717
Lesson 3 Question 3

Option A text printed as 'inCorrect:' instead of 'incorrect.'

David Oatley  Feb 24, 2011 
Printed Page 722
Answers to Question 2 Option A

Option A reads 'A. IncCorrect: ....' should read 'A. Incorrect: ....'

David Oatley  Mar 02, 2011 
Printed Page 724
Lesson 5 Question 1

Option A text printed as 'inCorrect:' instead of 'incorrect.'

David Oatley  Mar 04, 2011 
Printed Page 734
Question 1 Option B

Answer to option B refers to DragEnter event handler which is not related to the proposed answer for option B in the question on page 541 which gives the possible answer as MouseUp.

David Oatley  Mar 08, 2011 
Printed Page 736
Question 2 Answer options B & C

Option B answer refers to 'CurrentChild property' but the option B answer in the question on page 560 has no reference to CurrentChild property.
Option C answer refers to 'GetActiveMdiChild property' but the option C answer in the question on page 560 has no reference to GetActiveMdiChild property.

David Oatley  Mar 09, 2011 
Printed Page 737
Question 1 Answer Option B

Option B answer refers to 'no SetStep method' but the option B answer in the question on page 591 has no reference to SetStep method.

David Oatley  Mar 09, 2011 
Printed Page 738
Question 3 Answer option A

Option A answer refers to 'ShowHelp method' but the option A answer in the question on page 592 has no reference to ShowHelp method.

David Oatley  Mar 09, 2011