Developing and Implementing Windows-based Applications with Visual C# .NET and
Visual Studio .NET Exam Cram 2, Exam 70-316 (First Edition)
by Kalani Kirk Hausman, Amit Kalani, Priti Kalani 

Errata 

(You can help! If you know an error not mentioned in this list, please report the error)

Last Update: June 2, 2004

Ch# Page Error Description Reported By
1 15 Replace the following line of code:
MyForm.MouseDown += new MouseEventHandler (MyForm.MouseEventHandler);

With this line:
MyForm.MouseDown += new MouseEventHandler (MyForm.MouseClicker_MouseDown);

Seth Yancey
4 100 In Step 1, change the first sentence to the following:

"Create a new Windows Control Library project named, ColorMixer."

kplcjl at aol dot com

Seth Yancey

4 101 In Step 4, replace the third sentence, "After you add a.." with the following:

"To test this control, create a new Windows Application project and drag the control from the toolbox and drop it on the Windows Form. Place a Button control (btnSetColor) and a Label control (lblColorSample) on the form and add the following code to the Click event handler of the Button control:"

kplcjl at aol dot com

Seth Yancey

4 102 Replace Step 1 text with the following:

1. In the ColorMixer project, make a copy of the ColorMixer.cs control and name the copy as ColorMixerWithEvents.cs. Using the Code view replace all instances of ColorMixer with ColorMixerWithEvents.

kplcjl at aol dot com

Seth Yancey

4 103 Replace Step 4 text with the following:

4. Build the code. Add an instance of the ColorMixerWithEvents control to the Windows Form that you created to test the ColorMixer control. Accept the default name of colorMixerWithEvents1.

kplcjl at aol dot com

Seth Yancey

4. 103 Delete Step 5.

Renumber Step 6 to Step 5 and replace its text with the following:

5. Add the following code to handle the Changed event of the colorMixerWithEvents1 control:

private void colorMixerWithEvents1_Changed(object sender, ColorMixer.ColorMixerWithEvents.ColorMixerEventArgs args)
{
       lblColorSample.BackColor = Color.FromArgb(args.red, args.green, args.blue);
}

Renumber Step 7 to Step 6.

kplcjl at aol dot com

Seth Yancey