Beginning Visual C 2005


Karli Watson
Christian Nagel
Jacob Hammer Pedersen
Jon D. Reid
Morgan Skinner
Eric White

Published by
Wiley Publishing, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com

Copyright 2006 by Wiley Publishing, Inc., Indianapolis, Indiana

Published simultaneously in Canada

ISBN-13: 978-0-7645-7847-2
ISBN-10: 0-7645-7847-2

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

1O/RR/RQ/QV/IN

Library of Congress Cataloging-in-Publication Data:

Beginning Visual C# 2005 / Karli Watson ... [et al.].
p. cm.
Updated ed. of: Beginning Visual C#. 2003.
Includes index.
ISBN-13: 978-0-7645-7847-2 (paper/website)
ISBN-10: 0-7645-7847-2 (paper/website)
1. C# (Computer program language) 2. Microsoft .NET Framework. I. Watson, Karli. II. Beginning Visual C#. QA76.73.C154B483 2005
005.13'3--dc22

2005010692

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at http://www.wiley.com/go/permissions.

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.

For general information on our other products and services please contact our Customer Care Department within the United States at (800) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Visual C# is a registered trademark of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book.

Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books.

Credits

Acquisitions Editor
Katie Mohr

Development Editor
Tom Dinse

Technical Editor
Todd Meister

Production Editor
Angela Smith

Copy Editor
Foxxe Editorial Services

Editorial Manager
Mary Beth Wakefield

Vice President & Executive Group Publisher
Richard Swadley

Vice President and Publisher
Joseph B. Wikert

Project Coordinators
Ryan Steffen
Erin Smith

Graphics and Production Specialists
Andrea Dahl
Denny Hager
Jennifer Heleine
Stephanie Jumper
Barbara Moore
Shelley Norris
Lynsey Osborn
Heather Ryan
Alicia South
Ron Terry
Julie Trippetti

Quality Control Technicians
Laura Albert
Leeann Harney
Carl William Pierce

Proofreading and Indexing
TECHBOOKS Production Services

for donna

—Karli Watson

I'd like to dedicate my portion of this book to my wife, Beth, and our children Nathaniel, Timothy, and Walter. Thanks for your support and encouragement. Also a big thank you to my co-authors and the team at Wrox/Wiley.

—Jon Reid

About the Authors

Karli Watson is the technical director of 3form (www.3form.net), as well as a freelance IT specialist, author, developer, and consultant. For the most part, he immerses himself in .NET (in particular C#) and has written numerous books in the field for several publishers. He specializes in communicating complex ideas in a way that is accessible to anyone with a passion to learn, and spends much of his time playing with new technology to find new things to teach people about.

During those (seemingly few) times where he isn't doing the above, Karli will probably be wishing he was hurtling down a mountain on a snowboard. Or possibly trying to get his novel published. Either way, you'll know him by his brightly colored clothes.

Christian Nagel is a software architect, trainer, and consultant, and an associate of Thinktecture, offering training and coaching based on Microsoft .NET technologies. His achievements in the developer community have earned him a position as Microsoft Regional Director and MVP for Visual C#. He enjoys an excellent reputation as an author of several .NET books, such as Professional C#, Pro .NET Network Programming and C# Web Services, and he speaks regularly at international industry conferences.

Christian looks back on more than 15 years of experience as a developer and software architect. He started his computing career on PDP 11 and VAX/VMS, covering a variety of languages and platforms. Since 2000 he has been working with .NET and C#, developing and architecting distributed solutions.

http://www.christiannagel.com
http://www.thinktecture.com

Jacob Hammer Pedersen is a systems developer at Fujitsu Service, Denmark. He's been programming the PC since the early 90s using languages such as Pascal, Visual Basic, C/C++, and in later years C#. Jacob is an MCSD who works almost exclusively on the Microsoft platform where his expertise includes .NET, COM, COM+/Enterprise Services, SQL Server, and MS Office development. A Danish citizen, he works and lives in Aarhus, Denmark.

Jon D. Reid is the President and Chief Technology Officer for Savitar Corporation, an independent software vendor and consulting company that develops database tools for the Microsoft.NET environment. He has co-authored many .NET books, including Pro Visual Studio .NET, Fast Track to C# Programming, ADO.NET Programmer's Reference, and Professional SQL Server 2000 XML. Jon would like to thank his family, co-authors, and the team at Wrox for their support and encouragement.

Morgan Skinner began his computing career at a tender age on a Sinclair ZX80 at school, where he was underwhelmed by some code a teacher had written and so began programming in assembly language. After getting hooked on Z80 (which he believes is far better than those paltry 3 registers on the 6502), he graduated through the school's ZX81s to his own ZX Spectrum.

Since then he's used all sorts of languages and platforms, including VAX Macro Assembler, Pascal, Modula2, Smalltalk, X86 assembly language, PowerBuilder, C/C++, VB, and currently C#. He's been programming in .NET since the PDC release in 2000, and liked it so much, he joined Microsoft in 2001. He now works in Premier Support for Developers and spends most of his time assisting customers with C#.

You can reach Morgan at http://www.morganskinner.com.

Eric White is an independent software consultant with over 20 years experience in building management information systems and accounting systems. When he isn't hunched over a screen programming in C#, he will most likely be found with an ice axe in hand, climbing some mountain.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net