Programming Microsoft Windows with C#
Programming Microsoft Windows with C#内容简介
"Look it up in Petzold" remains the last word on Windows development. In this .NET-ready Windows programming guide, the best-selling author shows you how to get the most out of Windows Forms--the next-generation Windows programming class library. You'll discover how to use C# to create dynamic user interfaces and graphical outputs for Windows applications. With dozens of examples of client applications to illustrate common techniques and plenty of no-nonsense advice on best programming practices, you'll be C# sharp in no time. Topics covered in this guide include: A tour of C#Windows FormsEssential structuresAn exercise in text outputLines, curves, and area fillsTapping into the keyboardPages and transformsTaming the mouseText and fontsThe timer and time Images and bitmapsButtons, labels, and scrollsBeziers and other splinesMenusPaths, regions, and clippingDialog boxesBrushes and pensEdit, list, and spin controlsFont funToolbars and status barsPrintingTree view and List viewMetafilesClip, drag, and drop INCLU
热门摘录
The Windows Documentation recommends that whenever you override a On method you call the base class On method.
Dont do this,however:Size.Width*=2.That's setting a property of a property.For reasons beyond the comprehension of people who don't write compilers, It's not allowed.
To Write ideally generalized code, the brush in your DrawString calls is New SolidBrush(ForeColor) .
The world of graphics is roughly divided into two areas:1.Vector Graphics 2.Raster Graphics.With the ascendance of outline fonts,text is often treated as part of vector graphics. 1.Graphics isn't public! 2Graphics class is sealed.
the off-by-1 error
Programming Microsoft Windows with C#书评
还没人写过点评,快来抢沙发吧