Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399

Copyright © 2002 by Microsoft Corporation

All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.

Library of Congress Cataloging-in-Publication Data
Williams, Mickey.
   Microsoft Visual C# (core reference) / Mickey Williams.
      p. cm.
   Includes index.
   ISBN 0-7356-1290-0
    1. Microsoft Visual C#.  2. C# (Computer program language)  I. Title.

 QA76.736.C153 .W55235  2002
 005.26'8--dc21                                                               2001059058

Printed and bound in the United States of America.

1  2  3  4  5  6  7  8  9    QWE    7  6  5  4  3  2

Distributed in Canada by Penguin Books Canada Limited.

A CIP catalogue record for this book is available from the British Library.

Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to mspinput@microsoft.com.

ActiveX, Authenticode, Encarta, FrontPage, IntelliMouse, IntelliSense, JScript, Microsoft, Microsoft Press, MSDN, .NET logo, OpenType, Verdana, Visual Basic, Visual C++, Visual C#, Visual Studio, Win32, Windows, Windows NT, and Xbox are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners.

The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.

Acquisitions Editor: Danielle Bird
Project Editor: Dick Brown
Technical Editors: Donnie Cameron and Julie Xiao

Body Part No. X08-06141

Part III: Programming Windows Forms