文档介绍:Windows Forms
Programming with C#
ERIK BROWN
MANNING
Greenwich
(74° w. long.)
For online information and ordering of this and other Manning books,
go to . The publisher offers discounts on this book
when ordered in quantity. For more information, please contact:
Special Sales Department
Manning Publications Co.
209 Bruce Park Avenue Fax: (203) 661-9018
Greenwich, CT 06830 email: orders@
©2002 by Manning Publications Co. All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
in any form or by means electronic, mechanical, photocopying, or otherwise, without prior
written permission of the publisher.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in the book, and Manning
Publications was aware of a trademark claim, the designations have been printed in initial
caps or all caps.
Recognizing the importance of preserving what has been written, it is Manning’s policy to have the
books we publish printed on acid-free paper, and we exert our best efforts to that end.
Manning Publications Co. Copyeditor: Lois Patterson
209 Bruce Park Avenue Typesetter: Syd Brown
Greenwich, CT 06830 Cover designer: Leslie Haimes
ISBN 1930110-28-6
Printed in the United States of America
**********–VHG–0605040302
In memory of Thelma Rose Wilson,
and for her beautiful daughter whom I love
brief contents
Part 1 Hello Windows Forms 1
1 Getting started with Windows Forms 3
2 Getting started with Visual Studio .NET 34
Part 2 Basic Windows Forms 67
3 Menus 69
4 Status bars 102
5 Reusable libraries 126
mon file dialogs 161
7 Drawing and scrolling 194
8 Dialog boxes 224
9 Basic controls 263
10 List controls 314
11 More controls 353
12 A .NET assortment 383
13 Toolbars and tips 410
Part 3 Advanced Windows Forms 437
14 List views 439
15 Tree views 485
16 Multiple d