Cover image for Programming .NET Windows applications
Programming .NET Windows applications
Liberty, Jesse.
Personal Author:
First edition.
Publication Information:
Sebastopol, CA : O'Reilly, [2004]

Physical Description:
xv, 1228 pages : illustrations ; 23 cm
General Note:
Includes index.

"Covers .NET 1.1 & Visual studio .NET 2003"--Cover.

"Rich client applications with C♯ or VB.NET"--Cover.
Added Author:
Format :


Call Number
Material Type
Home Location
Item Holds
QA76.76.A65 L53 2004 Adult Non-Fiction Central Closed Stacks

On Order



For those of you who develop standalone Windows applications for PCs and other devices, Microsoft's .NET Windows Forms provide a much better way to get it done. This new technology gives you more power and flexibility for a fraction of the effort compared to classic Win32 development, with a streamlined programming model that deals automatically with many tedious details that once plagued developers.As with most things .NET, the only hitch is the learning curve. But that's where acclaimed author Jesse Liberty makes the difference with Programming .NET Windows Applications . With this tutorial, you will explore all aspects of using .NET Windows Forms class libraries and the associated programming tools in Visual Studio .NET, enabling you to build applications for the Windows 9x, Windows 2000 and Windows XP desktop platforms. Step-by-step, you'll learn ways to design applications that either function alone on a PC, or work in combination with your web-based application server to take advantage of the richer interface and higher level of security.The book also explains how your new Windows applications can sidestep problems that used to arise from the use of DLLs (known collectively as "DLL hell"), and how .NET Windows Forms can be used as an alternative to ASP.NET and browser-based approaches for building web application clients.Jesse Liberty definitely knows his stuff when it comes to the .NET platform. As the author of O'Reilly's Programming C# and Learning Visual Basic .NET , he's well-known for his clear and concise style that prompted one reviewer to say, "It's as if he knows exactly what questions I'm going to ask ahead of time." Jesse also co-authored Programming ASP.NET with contract programmer Dan Hurwitz, and now the two have teamed up again to bring you this comprehensive tutorial--without a doubt, the best source available for learning how to program with .NET Windows Forms.

Author Notes

Jesse Liberty is the best selling author of Programming ASP.NET, Programming C#, and a dozen other books on web and object oriented programming. He is president of Liberty Associates, Inc., where he provides contract programming, consulting and on-site training in ASP.NET, C#, C++ and related topics. Jesse has been a Distinguished Software Engineer at AT&T and Vice President for technology development at CitiBank.

Dan Hurwitz is the president of Sterling Solutions, Inc., where for nearly two decades he has been providing contract programming and database development to a wide variety of clients.

Table of Contents

Prefacep. ix
1. Windows Forms and the .NET Frameworkp. 1
The .NET Frameworkp. 1
Windows Formsp. 3
2. Getting Startedp. 5
System Requirementsp. 5
Hello Worldp. 7
3. Visual Studio .NETp. 31
Overviewp. 31
Start Pagep. 32
Projects and Solutionsp. 34
The Integrated Development Environment (IDE)p. 36
Building and Runningp. 70
4. Eventsp. 71
Publish and Subscribep. 71
Performancep. 90
Some Examplesp. 90
5. Windows Formsp. 117
Web Applications Versus Windows Applicationsp. 118
The Forms Namespacep. 120
Form Propertiesp. 124
Forms Inheritancep. 126
User Interface Designp. 144
6. Dialog Boxesp. 168
Modal Versus Modelessp. 168
Form Propertiesp. 169
DialogResultp. 174
Termination Buttonsp. 179
Apply Buttonp. 181
CommonDialog Classesp. 189
7. Controls: The Base Classp. 219
Control Classp. 219
8. Mouse Interactionp. 272
SystemInformation Propertiesp. 272
Mouse Eventsp. 276
9. Text and Fontsp. 305
Textp. 305
Fontsp. 307
10. Drawing and GDI+p. 342
The Drawing Namespacep. 342
The Analog Clock Projectp. 361
11. Labels and Buttonsp. 423
Labelp. 423
Button Classesp. 444
12. Text Controlsp. 474
Textp. 474
Editable Text Controls: TextBoxBasep. 475
Rich TextBoxp. 503
13. Other Basic Controlsp. 529
Containersp. 529
Tabbed Pagesp. 540
PictureBoxp. 553
ScrollBarp. 560
TrackBarp. 573
Up-Down Controlsp. 578
ProgressBarp. 592
14. TreeView and ListViewp. 597
Class Hierarchyp. 597
Splitterp. 598
TreeViewp. 604
ListViewp. 635
15. List Controlsp. 681
Class Hierarchyp. 681
ListControlsp. 681
16. Date and Time Controlsp. 738
Class Hierarchyp. 738
Date and Time Valuesp. 738
DateTimePickerp. 748
MonthCalendarp. 759
Timer Componentp. 776
17. Custom Controlsp. 791
Specializing an Existing Controlp. 792
Creating a User Controlp. 797
Creating Custom Controls from Scratchp. 819
18. Menus and Barsp. 836
Creating Your First Menup. 836
The MainMenu Objectp. 837
Toolbarsp. 880
Writing It by Handp. 886
Status Barsp. 900
19. ADO.NETp. 910
Bug Database: A Windows Applicationp. 911
The ADO.NET Object Modelp. 914
Getting Started with ADO.NETp. 919
Managed Providersp. 936
Binding Datap. 940
Data Readerp. 942
Creating a DataGridp. 946
20. Updating ADO.NETp. 985
Updating with SQLp. 985
Updating Data with Transactionsp. 993
Updating Data Using DataSetsp. 1025
Multiuser Updatesp. 1049
Command Builderp. 1070
21. Exceptions and Debuggingp. 1080
Bugs Versus Exceptionsp. 1080
Exceptionsp. 1081
Throwing and Catching Exceptionsp. 1082
Bugsp. 1084
Debugging in Visual Studio .NETp. 1084
Assert Yourselfp. 1104
22. Configuration and Deploymentp. 1109
Class Hierarchyp. 1109
Configurationp. 1110
Assembliesp. 1133
Build Configurationsp. 1165
Deploymentp. 1168
Appendix Characters and Keysp. 1191
Indexp. 1203